Python Forum

Full Version: Whitespace syntax error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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).