Python Forum

Full Version: SyntaxError when trying to execute code on Windows
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm a brand new baby when it comes to programming. just want to run simple hello world doc from a different directory in Windows native Dos

Error:
SyntaxError: unexpected character after line continuation character >>> Users\fredt\OneDrive\Documents\ hello.py File "<stdin>", line 1 Users\fredt\OneDrive\Documents\hello.py
^

its simple I know I'm starting to feel like if I were to catch fire I'd burn really slowly..PLZ HELP
It looks like you're trying to run that from inside the Python shell. That's wrong. At the Windows prompt, you should be running python <path to script>.