+ 1

Why print(1+1) without ''?

19th Feb 2017, 8:07 PM
SultanXalil
SultanXalil - avatar
5 ответов
+ 5
if u will add that double inverted commas then it is a command to print whole sentence to print which are inside double inverted commas.... and if u do not add double inverted commas then it will give command to add and print the answer. these was the difference
19th Feb 2017, 8:43 PM
nikhil musale
nikhil musale - avatar
+ 4
Because they are integers and not strings.
19th Feb 2017, 8:10 PM
Rahm
Rahm - avatar
+ 1
They are integers and not strings. If you did print("A" + "n"), that is a string.
19th Feb 2017, 10:15 PM
Mark
Mark - avatar
+ 1
if you dont want to treat in as string ..dont use "
20th Feb 2017, 4:07 AM
Raj Kumar Chauhan
Raj Kumar Chauhan - avatar
0
2
21st Feb 2017, 7:33 PM
MeHdI JO_oN
MeHdI JO_oN - avatar