question = input("Would you like quit the program?\nY. Yes\tN. No")
while(True):
if question=="y":
print("Keep the program running.")
break
elif question=="n":
print("Program is closing.")
break
So my question is, how would you keep the .exe program running? I tried to search it up and most of them involves in Python 2.6, that they simply but raw_input in the end of program and asking the user to press the program to shut down.
My second question related to first is:
What if the user wants to run the program multiple times, how would I do it? I was wondering that the user would need a nested loop to run the entire program. The first while will be keep in track of the entire program, meanwhile the second while loop will keep in track of the options that it given.
while(True):
while(True):
So please any suggestions on how to keep the .exe program running?

New Topic/Question
Reply



MultiQuote




|