0

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

28th Jul 2016, 10:45 PM
Daniel baez
Daniel baez - avatar
2 Answers
0
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
0
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