I had a question.
I'm trying to do this script:
I originally posted this on HeadRush's Python tutorial, however, thought I might get a faster reply here.
Code:
#!/usr/bin/python
import time
yourName = str(raw_input("Please enter your name: "))
if yourName == "John":
print "You are learning python!"
time.sleep(2)
elif yourName == "HeadRush":
print "You made this tutorial!"
time.sleep(2)
else:
print "Oh welcome to this script."
time.sleep(2)
print "Goodbye this is the end of the if, elif, and else statement script."
time.sleep(2)
However, every time I go to run it, the window doesn't stay open.
I've had several problems with this and the only script I could get to stay open was the User Input one.
Am I doing something wrong? Is there a way to make sure the cmd stays open?