Jan-31-2019, 02:36 PM
I am a brand new learner of python.
I created a text file named 'hello.py' and the content of the file is print('Hello'). It resides on my hard drive in folder C:\python.
I want to import and run this file in Python 3.7.2 Shell. When I type in C:\python hello.py or C:\\python hello.py I get the following message - SyntaxError: unexpected character after line continuation character.
What am I doing wrong? This seems like something so simple I am embarrassed to even write about it.
Thanks
I created a text file named 'hello.py' and the content of the file is print('Hello'). It resides on my hard drive in folder C:\python.
I want to import and run this file in Python 3.7.2 Shell. When I type in C:\python hello.py or C:\\python hello.py I get the following message - SyntaxError: unexpected character after line continuation character.
What am I doing wrong? This seems like something so simple I am embarrassed to even write about it.
Thanks