why not put print x. instead of print (x+"1")

28th Jul 2016, 10:45 PM
Daniel baez
Daniel baez - avatar
2 Answers
When you put "1" into x by (x +"1") it only works if x is defined as a string. Then you can't add integers to it because of the two different data types, str & int. You can keep adding to x as long as you declare x as the same data type as what you add to x.
28th Jul 2016, 11:08 PM
daniel fancher
daniel fancher - avatar
add x then 1 is the answer var x want leave REM x understand
5th Aug 2016, 12:41 PM
Tammie Younger
Tammie Younger - avatar