How would you make a pizza menu where you can order multiple toppings and different pizza size? Each topping having a dif set price as well as size. Then adding drink order and adding total.
You can use a dictionary to store prices and basic input prompts to take orders. sizes = {'small': 8, 'medium': 10, 'large': 12} toppings = {'pepperoni': 2, 'mushrooms': 1, 'extra cheese': 1.5} drinks = {'soda': 1.5, 'water': 1} I might make this as an example some time.
How would you make a pizza menu where you can order multiple toppings and different pizza size? Each topping having a dif set price as well as size. Then adding drink order and adding total.
You can use a dictionary to store prices and basic input prompts to take orders.
sizes = {'small': 8, 'medium': 10, 'large': 12}
toppings = {'pepperoni': 2, 'mushrooms': 1, 'extra cheese': 1.5}
drinks = {'soda': 1.5, 'water': 1}
I might make this as an example some time.
Thank you that was very informative and interesting.
Glad you enjoyed it!