Jan-05-2018, 11:17 PM
Hi.
I'm not really a student, but i sort of made it a new year's resolution to learn how to code. This seemed like the appropriate place to ask my question. I apologize if it's not.
I started reading a book on learning python and i'm allready stuck on one of the first exercises :/
So the task involves the change direcory command. I'm supposed to write these commands in a terminal:
C:\> cd Desktop\python_work
C:\Desktop\python_work> dir
hello_world.py
C:\Desktop\python_work> python hello_world.py
After the first line i always get this message: SyntaxError: unexpected character after line continuation character
To explain: i had to write a simple line of code so that the message 'Hello Python world!' would be printed and save it in Geany as 'hello_world.py'. The commands above should be written in the terminal to run this code.
I hope i've given enough information to help me clarify what's amiss here. I'm serious about learning to code and it's kinda frustrating to be stuck right at te start :s
Python version: Python 3.6.4
OS: Windows 7
I'm not really a student, but i sort of made it a new year's resolution to learn how to code. This seemed like the appropriate place to ask my question. I apologize if it's not.
I started reading a book on learning python and i'm allready stuck on one of the first exercises :/
So the task involves the change direcory command. I'm supposed to write these commands in a terminal:
C:\> cd Desktop\python_work
C:\Desktop\python_work> dir
hello_world.py
C:\Desktop\python_work> python hello_world.py
After the first line i always get this message: SyntaxError: unexpected character after line continuation character
To explain: i had to write a simple line of code so that the message 'Hello Python world!' would be printed and save it in Geany as 'hello_world.py'. The commands above should be written in the terminal to run this code.
I hope i've given enough information to help me clarify what's amiss here. I'm serious about learning to code and it's kinda frustrating to be stuck right at te start :s
Python version: Python 3.6.4
OS: Windows 7