+ 1
what's wrong in my syntax ??????
>>> 2 + 2 output is invalid syntax
4 Answers
+ 2
I agree. You should use the print() method. Otherwise, the the interpreter will not be able to tell what you want it to do.
+ 2
If u type >>>2+2 on python installed on ur pc in terminal then it will give u 4. But while coding this is not correct since code does not specify what does should be done with it so use print() statement.
Upvote me if my answer helped and happy coding :-)
+ 1
try print (2+2), 2+2 is not output
0
you should add quote to it ('2+2')