thomasrules
Programmer
Hi I'm starting up learning Python. I'm making a small program that basicaly asks the user if he wants to run the program or turn it off and I want to loop it, so that it keeps on asking if I want to make it run or not. If I say no then the loop ends.:
print "Run the program?\n\n"
y="yes"
n="no"
x =""
while x != "no":
x = raw_input('es or o?:\n')
print "Starting Up"
while x !="yes":
x = raw_input('es or o?:\n')
print "Shuttind Down"
print "Run the program?\n\n"
y="yes"
n="no"
x =""
while x != "no":
x = raw_input('es or o?:\n')
print "Starting Up"
while x !="yes":
x = raw_input('es or o?:\n')
print "Shuttind Down"