+ 1

Math?

After typing in a math equation, such at >>>1+2+3 nothing happens. The lesson insinuates the answer will appear but if I hit "run" I get a syntax error. Otherwise I get nothing. What am I doing wrong? Thanks!

19th Feb 2019, 10:52 PM
Jennifer
Jennifer - avatar
1 Answer
+ 6
The >>> are used only for Python idle as a way of testing out a couple lines of code. When writing scripts, all you need to do is enter the function (without the >>> ) and it should run fine. For example, just typing in print(1+2+3) in the python playground will output 6.
19th Feb 2019, 10:54 PM
Faisal
Faisal - avatar