0
Why can't i run this?
i enter 2+2 on the code playgound and get no output. i add the ">>>" prompt and get an error. what am i doing wrong
1 Odpowiedź
+ 5
>>> indicates you're using interactive/immediate-mode Python (not the case here, where you submit scripts)
>>> 2+2
Only displays 4 in interactive mode (it assumes you want to know the output)
In scripts you'll usually wrap with print():
print(2+2)