pizzapi
pizzapi copied to clipboard
Order custom pizzas
I think it would be cool to have a Pizza object, and a Menu.search_topping() function, where we could do something like this:
Menu.search_topping(Name="Cheese")
And that would return
NAME ID CHEESE CHESE
and then
cheese = "CHESE"
pizza = Pizza(Code="PIZZACODE")
pizza.add_toppping(cheese, AMOUNT)
ect....
Order.add_item(pizza)