Question: Write comments to explain how the code works in your application. Print a welcome message: Welcome to Burgers to Go ! Create a list

Write comments to explain how the code works in your application.
Print a welcome message: "Welcome to Burgers to Go!"
Create a list of toppings. You can be creative and choose the toppings!
Create a function called 'display_toppings(toppings)' that takes a list and prints each item.
Use your function to display topping options. Allow the user to choose multiple toppings:
- Ask "Do you want to add a topping? (yes/no)"
- If yes, prompt for a topping and add it to a list of chosen toppings
- Repeat until the user says no
Print out the final order:
- "Your order is a delicious burger with these toppings: "
-"[list of chosen toppings]"
If the user chose your favorite topping, print "Thank you for trying our favorite topping: " plus the topping name.
For example, if your favorite topping is bacon, then display: "Thank you for trying our favorite topping: bacon!"

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!