0
Why does this code have a syntax error?
In SoloLearn lessons when writing a little code it starts with >>>, nevertheless when I write something, e.g. this: >>> "Hello world" ----- It appears me a syntaxerror. What could it be? Thanks!
3 Antworten
+ 3
You don't need to write >>>. That is something the shell puts there to indicate a new statement. To display text in console, use print ()
E.g print ("Hello World")
0
yup in python3 close it with () in python 2 just use " or '
- 1
needs print and enclosed with ()