+ 1
I can't calculate anything in the code sand box pls help
so i was messing around in the code sand box and did 2 + 2 or something like that and it didn't work i also tried print ('2 + 2')
3 ответов
+ 3
It didn't work because it was a whole string, so the plus sign was also a character.
To do it, you should put the plus sign outside of the string.
2 + 2 # = 4
"2" + "2" # = 22
"2" + 2 # Error, can't ad strings and integers
+ 3
print (2 +2) #no quotes.
+ 1
Thx to both of you