Python 3.3.3 Running Files with Command Line
Question: I just started learning Python 3.3.3 with the book "Learning Python" from
O'Reilly by Mark Lutz, 4th Ed.

I was able to run code interactively, but when I tried to run the code from
files through the command line, I just kept getting syntax errors.

FYI, I am using Windows 7.

The book asks that one create a file using a text editor with the following:

    
    
    import sys
    print(sys.platform)
    print(2 ** 100)
    x = 'Spam!'
    print(x * 8)
    

I did this using notepad and saved the file with the suffix "py" and the file
type "all.files" so there would not be a "txt" file saved. When I try to run
the script in the python command I get an error message. I've tried entering
the PATH but that as not worked either. It is located in C:\Python33\

Any guidance you are able to provide is very welcomed. I've tried numerous
ways for the past 1 hour.


Answer: So, I have the following in my `Path` variable,

    
    
    C:\Python27;C:\Python27\Scripts;
    

Is that what you have? Maybe close your command line and open it again, or
shut your machine off and turn it on again--the system variables do not update
instantly.

