0

I just started learning Python... But i got a problem..

There was written >>>print('hello world!'). But when i tried it, it didn't work... instead this worked print('hello world!')... can anybody help me please.

14th Aug 2017, 8:20 AM
Atul kumar
Atul kumar - avatar
2 Respuestas
+ 5
The ">>>" bit is shown on 'some' consoles like the windows 'command prompt' (notice that the code playground doesn't have it though) and indicates that you are supposed to type your code starting from there, it isn't actually required in your code so the second way you tried is the correct way to print 'hello world!'.
14th Aug 2017, 9:21 AM
LynTon
LynTon - avatar