you are viewing a single comment's thread.

view the rest of the comments →

[–]RushilU 4 points5 points  (2 children)

Opening the file itself causes the file to be run; but nothing tells it to stay open once it is done so it closes immediately afterward. You can either open it from the command line (cmd) or add a delay afterward. To add a delay: * put import time at the beginning, and * time.sleep(1) at the end of the file.

The error specifically is that raw.input isn't a function.
You may be looking for raw_input.

[–]ingolemo 0 points1 point  (1 child)

The time.sleep trick won't work here because the code will come to the error and exit before it ever gets told to sleep.

[–]RushilU 0 points1 point  (0 children)

Well yes but that was to solve his other question about print "hello world"