[Tutor] Syntax error

Sarah Rasco sarah.a.rasco at gmail.com
Thu Jan 7 13:15:42 EST 2016


Alan - I realized I did that right after I sent this email. However, I
can't run it in the windows or python prompts.

Here is my document:
[image: Inline image 1]
When I try to run it in the windows prompt I get:
[image: Inline image 2]

Or in the python prompt:
[image: Inline image 3]

And the file is definitely in there...
[image: Inline image 4]



On Thu, Jan 7, 2016 at 8:40 AM, Sarah Rasco <sarah.a.rasco at gmail.com> wrote:

> Hello,
>
> I'm new to programming and was told that Python would be a good language
> to start with. I downloaded version 3.5.1, and I have Windows 10.
>
> In IDLE, I typed print ("Hello, world!") and hit enter, and it returned
> the message. I saved the file as hello.py in C:\python. Then, when I tried
> to run it in IDLE, I got a syntax error and it highlighted the '5' in the
> prompt 'python 3.5.1'.
>
> I also tried to run it in my windows command prompt. I put in cd C:\python
> and it gave me the python prompt. Then, when I tried to open the file by
> typing python hello.py, I was given a syntax error again. Does anyone have
> any suggestions as to what the problem could be?
>
> Thank you!
>


More information about the Tutor mailing list