stdin problem

This is the place for queries that don't fit in any of the other categories.

stdin problem

Postby eleana122 » Sat Nov 23, 2013 1:59 pm

hello

i have this problem...what can i do?i use windows 7

Code: Select all
>>> python test.py
  File "<stdin>", line 1
    python test.py
                    ^
SyntaxError: invalid syntax
Last edited by stranac on Sat Nov 23, 2013 2:07 pm, edited 1 time in total.
Reason: Added code tags. Locked.
eleana122
 
Posts: 1
Joined: Sat Nov 23, 2013 1:56 pm

Re: stdin problem

Postby stranac » Sat Nov 23, 2013 2:10 pm

You're not supposed to be running that from the the python interpreter, but from the terminal(cmd.exe, powershell, or whatever).

Also, read this.
Friendship is magic!

R.I.P. Tracy M. You will be missed.
User avatar
stranac
 
Posts: 1143
Joined: Thu Feb 07, 2013 3:42 pm


Return to General Coding Help

Who is online

Users browsing this forum: No registered users and 3 guests