on-internet
← Community

python problem don't know how to make menu repeat

Stack Overflow ·

I am trying to make the main menu text keep repeating until the user chooses 5 and then the program closes but I don't know how to make it keep repeating. I tried to use a while loop which didn't work and started spamming the main menu. So here is the code all I need is for you to explain how to make the main menu repeat and the choice repeat until the user picks option five (exit). print('''------------ Main Menu ------------''') one='1 - show all contacts' two='2 - add a new contact' three='3 - find contact' four='4 - Delete contact' five='5 - Quit' print(one) print(two) print(three) print(f

Comments

Sign in or sign up to comment and upvote.

No comments yet.