What They Never Told You About Programming - Part 2

Xavier works at a sporting goods shop in the online sales department, and he is debugging the code below, which is designed to call the purchase_items() function until all desired items have been bagged. What is wrong with the code?

1
2
3
4
5
purchased=0
quantity_desired = 10

while purchased < quantity_desired:
    purchase_items()
×

Problem Loading...

Note Loading...

Set Loading...