Advertisement
timber101

MAMA - Starter

Jun 7th, 2022
1,146
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #  Menu aide memoire application MAMA (Cheat sheet helper)
  2.  
  3.  
  4. def main_menu():
  5.     print(
  6.         """
  7.    My Main Menu
  8.    ============
  9.    
  10.    HC - Print Hello Colin
  11.    B - Another option
  12.    
  13.    
  14.    Q to Quit
  15.    Built by Colin)
  16.    
  17.    """
  18.     )
  19.  
  20.  
  21. main_menu()
  22.  
  23. option = ""
  24.  
  25. while option.upper() != "Q":
  26.     option = input("Enter a menu option or Q to Quit >> ")
  27.     if option.upper() == "HC":
  28.         print("Howdy Colin")
  29.     elif option.upper() == "Q":
  30.         print("Quiting ... ")
  31.     else:
  32.         print("Invalid selection - try again")
Advertisement
RAW Paste Data Copied
Advertisement