0

1

what is the difference between 1+1 and print(1+1) in python

30th Mar 2020, 4:20 AM
Akshay Krishna
Akshay Krishna - avatar
1 Answer
0
1+1 statement just adds the two number and you can't use that value since you are not storing it in any variable. Print (1+1) prints 2
30th Mar 2020, 5:02 AM
Geek
Geek - avatar