Invalid Syntax | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson

Invalid Syntax

I'm getting an "Invalid Syntax" message when I try to run the very first program (Hello world!). Thought maybe I had gotten spacing wrong or something, but I literally copied and pasted the program exactly as was written in the instructions, and I get the same message. This is not a good start for me. Edit: I've found the problem. The code playground gives an error message if you include the >>> symbols. Why is this? The instructions seem pretty clear that they are to be in there.

4th Feb 2019, 9:50 PM
David Hogan
David Hogan - avatar
3 Answers
+ 4
hello David Hogan can you provide source code please
4th Feb 2019, 10:02 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 1
If you get a syntax error you always get the cause for this error. Please also try to understand the error messages instead of just seeing "error" and run it again. They ought to be useful.
5th Feb 2019, 2:06 AM