Gallery
Debug 7.3. Dodgy Doughnuts
Share
Explore
Debug 7.3. Dodgy Doughnuts

icon picker
The Task

Activity: Debug 7.3 Dodgy Doughnuts 🐞 🍩

Start Here

This program should let a Krispy Kreme customer choose 4 doughnuts from the menu of 10 options.
A bug report has been has been submitted on this program.
It is quite a big program with quite a few errors. Hopefully you are an awsome bug fixer!
However it displays the same menu item four times and then it lets the customer choose ten doughnuts! Also the number the customer picks is not the correct doughnut.
Can you help fix it?
Run and explore the program to identify errors, there are more than one.
Read the comments, read the python code and refer to the code clips below to help you fix the errors one at a time.
Right click on your code and add a comment explaining what was wrong and how you fixed it.
Good luck! 🍀

Sample Output

Doughnuts Menu

1 : Chocolate Sprinkles
2 : Lotus Biscoff
3 : Glazed Raspberry
4 : Vegan Caramel Iced Ring
5 : Cookies and Kreme
6 : Chocolate Dreamcake
7 : Strawberries and Kreme
8 : Original Glazed
9 : Nutty Chocolatta
10 : Vegan Strawberry Iced Ring


Pick your next doughnut, enter the menu number: 6
Great choice - Chocolate Dreamcake

Pick your next doughnut, enter the menu number: 9
Great choice - Nutty Chocolatta

Pick your next doughnut, enter the menu number: 1
Great choice - Chocolate Sprinkles

Pick your next doughnut, enter the menu number: 2
Great choice - Lotus Biscoff
Share
 
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.