![]() |
Whitespace syntax error - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Whitespace syntax error (/thread-18541.html) |
Whitespace syntax error - klp21 - May-22-2019 I am currently using Geany 1.35 with Python 3.7.3. My book is telling me to type: >>> print("Python") I get SyntaxError: invalid syntax (Program exited with code 1) when I leave out the end-of-line characters works fine my question is arent end-of-line characters needed for whitespace? I have also tried to use space without any success any help is appreciated thanks. RE: Whitespace syntax error - Gribouillis - May-22-2019 You never want to type the >>> . It is the prompt written by python in the console. Also if you want a better help, please post the error message in its entirety (between error tags).
|