def handle_input(): choice = input("Choice: ") if choice == "3": return False if choice == "1": list_reminders() elif choice == "2": print() reminder = input("What would you like to be reminded about?: ") add_reminder(reminder) list_reminders() else: print("Invalid menu option") return True
def handle_input(): choice = input("Choice: ") if choice == "3": return False if (choice == "1"): list_reminders() elif (choice == "2"): print() reminder = input("What would you like to be reminded about?: ") date = input("When will it be due?") add_reminder(reminder, date, PoliteReminder) list_reminders() else: print("Invalid menu option") return True
def handle_input(): choice = input("Choice: ") if choice == "3": return False if (choice == "1"): list_reminders() elif (choice == "2"): print() reminder = input("What would you like to be reminded about?: ") date = input("When is the due?: ") # if issubclass(EveningReminder, DeadlinedReminder): add_reminder(reminder, date, PoliteReminder) list_reminders() else: print("Invalid menu option") return True