SyntaxError: Invalid Syntax PLEASE help me
Question: Hey guys I am trying to learn Python Through an online book here:
<http://learnpythonthehardway.org/book/ex1.html>

However, I am trying to run a program to make it say stuff (I am trying to use
Windows Power Shell like it suggested) and I keep getting an error

Program:

    
    
    print "hello world!"
    

Error:

    
    
    File "<stdin>", line 1
    python exp1.py
              ^
    SyntaxError: Invalid Syntax
    

I am using ActivePython 2.7.5.6


Answer: Try

    
    
    import exp1
    

instead, since you already are inside an interpreter, as @hcwhsa said.

But that's really just an easy-to-give workaround. You should exit the
interpreter and execute the command from outside it.

