Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def callmenumain(): #This will be a way to call upon the main menu from any submenu that uses "callmainmenu()"
- print("""#Lets show the user the options
- ====Menu====
- 1]Submenu 1
- 2]Submenu 2
- 3]Submenu 3
- ============""")
- selectinput=input("Select an input number from the menu:\n")
- if selectinput=="1":
- callsubmenu1()#Defined somewhere else in the code
- elif selectinput=="2":
- callsubmenu2()#Defined somewhere else in the code
- elif selectinput=="3":
- callsubmenu3()#Defined somewhere else in the code
- callmainmenu()#At the very end of the code, put this so the code will run through the menu system
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement