In: Computer Science
Using Python, write a program named hw3b.py that meets the following requirements:
def get_size():
party_size = input("How many people are in your dinner party tonight? ")
party_size = int(party_size)
if party_size > 8:
print("I'm sorry, you'll have to wait for a table.")
else:
print("Your table is ready.")
get_pizza_toppings()
def get_pizza_toppigns():
toppings = []
prompt = "\nWhat topping would you like on your pizza?"
prompt += "\nEnter 'quit' when you are finished: "
while True:
topping = input(prompt)
if topping != 'quit':
print(" I'll add " + topping + " to your pizza.")
toppings.append(topping)
else:
break
def get_sandwich_order():
sandwich_orders = ['veggie', 'grilled cheese', 'turkey', 'roast beef']
finished_sandwiches = []
while sandwich_orders:
current_sandwich = sandwich_orders.pop()
print("I'm working on your " + current_sandwich + " sandwich.")
finished_sandwiches.append(current_sandwich)
print("\n")
for sandwich in finished_sandwiches:
print("I made a " + sandwich + " sandwich.")
if __name__ = "main":
get_size()
get_sandwich_order()