simple calculations | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

simple calculations

if i run the code:>>> 2+2 it says invalid syntax. What's the problem

12th Jun 2018, 2:41 PM
DANIEL KYALO
DANIEL KYALO - avatar
2 Answers
+ 5
Or: print (2 + 2)
12th Jun 2018, 3:12 PM
Paul
Paul - avatar
+ 3
DANIEL KYALO you should not enter the prompt '>>>', enter just '2 + 2' and it will work.
12th Jun 2018, 3:03 PM
Ulisses Cruz
Ulisses Cruz - avatar