Python Forum
Just starting out, allready stuck..
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Just starting out, allready stuck..
#1
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
Reply


Messages In This Thread
Just starting out, allready stuck.. - by Sandman - Jan-05-2018, 11:17 PM
RE: Just starting out, allready stuck.. - by mpd - Jan-06-2018, 12:14 AM
RE: Just starting out, allready stuck.. - by wavic - Jan-06-2018, 11:43 PM
RE: Just starting out, allready stuck.. - by wavic - Jan-07-2018, 12:53 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020