Watched a friend write these:
from menu import Menu, MenuItem
from coffee_maker import CoffeeMaker
from money_machine import MoneyMachine
def what_to_do_next():
pass
def handle_prompt(prompt):
if prompt == "off":
coffee_on = False
return
elif prompt == "report":
report = coffee_maker.report()
print(report)
coffee_maker = CoffeeMaker()
coffee_on = True
while coffee_on == True:
prompt = input("What would you like? (espresso/latte/cappuccino): ")
handle_prompt(prompt)
Comments
Post a Comment