0

Why isn' t the >>> 2 + 2 not working

I type >>> 2 + 2 on the python ' s playground but it doesn't work pls help

26th Nov 2018, 9:08 AM
Game Hacker
Game Hacker - avatar
3 Antworten
+ 5
Code Playground runs Python scripts. So you have to write one instead of treating it like the live Python shell. >>> is just the shell prompt, so you're not supposed to use it in your scripts. Try: print(2+2)
26th Nov 2018, 9:26 AM
Hatsy Rei
Hatsy Rei - avatar
+ 1
print (2+2), try this
26th Nov 2018, 9:23 AM
Barbaring0
Barbaring0 - avatar
0
It worked thanks
26th Nov 2018, 9:31 AM
Game Hacker
Game Hacker - avatar