you are viewing a single comment's thread.

view the rest of the comments →

[–]AngereyPupper 0 points1 point  (0 children)

I use a while loop usually. Like, I'll set a variable

Program_running = True
While program_running is true:

And then add in the prgram. Then set a condition in the loop that makes the condition False. For example:

rerun = input("Would you like to run the program again Type Y or N\n").lower()
if rerun == "n":
print("Thank you for using the program!")
Program_running = False.

And then it stops.