Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Python syntax error

Name: Anonymous 2008-04-14 16:14

sup /prog/

I literally just started learning Python, and I apparently am already confused. Trying to execute a basic "print 'Hello world!' from the cmd prompt (XP) is returning a syntax error.

The entirety of the script is as follows:
#! c:\Python25\
print "Hello, world!"

Trying to execute the file yields this:
>>> python script.py
  File "<stdin>", line 1
    python script.py
                ^
SyntaxError: invalid syntax

(parser is under the t in case the formatting doesn't work)

I can run the module from IDLE, but not from the command prompt. Ideas?

Name: Anonymous 2008-04-14 16:15

RAGE

Name: Anonymous 2008-04-14 16:20

Name: Anonymous 2008-04-14 16:31

try
import script

Name: Anonymous 2008-04-14 16:38

>>4

Ah, that worked. Appreciate it!

Name: Anonymous 2008-04-14 17:12

>>4,5

WHA- WHA- WHA- WHAT?

HELP? ON MY /PROG/?

Name: Anonymous 2008-04-14 17:13

>>4
What did I tell you about HELPING HIM!!

Name: Anonymous 2008-04-14 17:51

>>3
Forced cowprint of the indentation?

Name: Anonymous 2009-03-06 13:05

Than your a fagget?

Name: Anonymous 2010-12-17 1:40

Are you GAY?
Are you a NIGGER?
Are you a GAY NIGGER?

If you answered "Yes" to all of the above questions, then GNAA (GAY NIGGER ASSOCIATION OF AMERICA) might be exactly what you've been looking for!

Name: Sgt.Kabukiman 2012-05-22 3:27

All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List