def feed_medicine(cls): """ Takes in user input of medicine choice from three, and feeds medicine to the pet to reset its health level back to 100/100 """ medicine_choice = input(f'Which medicine would you choose?\n' f' 1. {Medicine.medicine_dict["1"]}\n' f' 2. {Medicine.medicine_dict["2"]}\n' f' 3. {Medicine.medicine_dict["3"]}\n' f' :') if not cls.update_status(): return False if medicine_choice in ['1', '2', '3']: Medicine.feed(cls.pet) print(f'{cls.pet.get_name()} says: ' f'{cls.pet.get_message()["after_medicine_msg"]}' f' (pet health is now 100/100)\n') else: print('No such medicine choice!\n') return True