0

Python syntax error for “>>>” in code playground.

Hi when I try to use the >>> operator I get an error. E.G. >>> “Hi” produces error on line 1: >>[error here]> “hi” ^

1st Jan 2020, 12:47 PM
josh mizzi
josh mizzi - avatar
4 Respuestas
+ 11
>>> in those examples is just a way of telling you that the code is written in the python interpreter (console) and not in a text editor or IDE. it's Just show start of the code. So tried to do print("Hi")
1st Jan 2020, 12:48 PM
GAWEN STEASY
GAWEN STEASY - avatar
0
This even happen for code copied from a course example.
1st Jan 2020, 12:48 PM
josh mizzi
josh mizzi - avatar
0
Thank you. In that case at least not sure why the sytax highlighter picks it up, but at least I understand why it throws an error.
1st Jan 2020, 2:18 PM
josh mizzi
josh mizzi - avatar