def main_menu(): """ Show Keahua title with main menu options Handle user-selected menu option Arguments: None """ build_menu() print("Choose a KILLER option.") choice = input(">> ") if choice == "1": annex_habitat(keahua) if choice == "2": release_animal(keahua) if choice == "3": feed_animal(keahua) if choice == "4": cultivate_plant(keahua) if choice == "5": build_facility_report(keahua) pass # NOT NEEDED - if user types 6, the code will just end # if choice == "6": # exit() if choice != "6": main_menu()
def main_menu(): """Show Keahua Action Options Arguments: None """ build_menu() print(f'{add_color("What would you like to do?", "WARNING")}') choice = input('> ') if choice == "1": annex_habitat(keahua) if choice == "2": clear() release_animal(keahua, False) if choice == "3": pass if choice == "4": pass if choice == "5": build_facility_report(keahua) if choice != "6": main_menu()
def main_menu(): """Show Keahua Action Options Arguments: None """ build_menu() choice = input(">> ") if choice == "1": annex_habitat(keahua) if choice == "2": release_animal(keahua) if choice == "3": feed_animal() if choice == "4": cultivate_plant(keahua) if choice == "5": build_facility_report(keahua) if choice != "6": main_menu()
def main_menu(): """Show Keahua Action Options Arguments: None """ build_menu() choice = input(">> ") if choice == "1": annex_habitat(keahua) if choice == "2": release_animal(keahua) if choice == "3": feed_animal(keahua) if choice == "4": add_plant(keahua) if choice == "5": build_facility_report(keahua) if choice == "6": write_text(keahua) #"Secret Seven": seed data with tester script if choice == "7": mass_add_to_environs(keahua) if choice == "0": clear_text() if choice != "6" and choice != "0": main_menu()
def main_menu(): """Show Keahua Action Options Arguments: None """ build_menu() choice = input("\n Choose a KILLER option \n \033[1;31;40m> \033[1;37;40m") if choice == "1": annex_habitat(keahua) if choice == "2": release_animal(keahua) if choice == "3": feed_animal(keahua) if choice == "4": cultivate_plant(keahua) if choice == "5": build_facility_report(keahua) if choice != "6": main_menu()
def main_menu(): build_menu() choice = input(">> ") if choice == "1": annex_habitat(keahua) if choice == "2": release_animal(keahua) if choice == "3": feed_animal(keahua) if choice == "4": cultivate_plant(keahua) if choice == "5": build_facility_report(keahua) if choice != "6": main_menu()