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

10th Jun 2017, 3:35 AM
Mike
1 Respuesta
+ 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)
10th Jun 2017, 3:40 AM
Kirk Schafer
Kirk Schafer - avatar