Question: Write a function orderPizza that allows the user input to build a pizza. It then prints a thank you message, the cost of the pizza
Write a function orderPizza that allows the user input to build a pizza. It then prints a thank
you message, the cost of the pizza and then returns the Pizza that was built.Welcome to Python Pizza!
What size pizza would you like SML : M
Type topping to add or Enter to quit : mushroom
Type topping to add or Enter to quit : onion
Type topping to add or Enter to quit: garlic
Type topping to add or Enter to quit:
Thanks for ordering!
Your pizza costs $
PizzaMmushroom 'onion', 'garlic'Welcome to Python Pizza!
What size pizza would you like SML : L
Type topping to add or Enter to quit : calamari
Type topping to add or Enter to quit: garlic
Type topping to add or Enter to quit:
Thanks for ordering!
Your pizza costs $
PizzaLgarlic 'calamari'
orderpizza
Welcome to Python Pizza!
What size pizza would you like SML: S
Type topping to add or Enter to quit:
Thanks for ordering!
Your pizza costs $
PizzaS 'ineset
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
