Question: This is the code This is the problem. categories-[ Books,Electroni.ca,Clothing] noltems [o,0,0 cost-[O,0,0 emainmenu(): while True: print (Inin 1 -Books n 2 Electronics In 3-Clothingin

This is the code
 This is the code This is the problem. categories-[ "Books","Electroni.ca","Clothing"] noltems
[o,0,0 cost-[O,0,0 emainmenu(): while True: print ("Inin 1 -Books n 2 Electronics
In 3-Clothingin 4 - Checkoutn") print ("In Select one of the categories
This is the problem.
or checkout (1-4):"end- op-int (inputO) if (op>-l and op 0): print ("InInSummary
of shopping cartiinin) print(" %-20s %-20s %-20s "$("category", "Number tor i in
range (len (noItema)): of items ", "cost of items")) print (" %-25s
%-20d t.If "$(categories [1],noltens [1],cost [1])) if (noItems(11!-0) print ("Inin 1-25s 1-20d

categories-[ "Books","Electroni.ca","Clothing"] noltems [o,0,0 cost-[O,0,0 emainmenu(): while True: print ("Inin 1 -Books n 2 Electronics In 3-Clothingin 4 - Checkoutn") print ("In Select one of the categories or checkout (1-4):"end- op-int (inputO) if (op>-l and op 0): print ("InInSummary of shopping cartiinin) print(" %-20s %-20s %-20s "$("category", "Number tor i in range (len (noItema)): of items ", "cost of items")) print (" %-25s %-20d t.If "$(categories [1],noltens [1],cost [1])) if (noItems(11!-0) print ("Inin 1-25s 1-20d .1f Inin"("Total",sum (noItems),sum(cost))) else: print("nCart is empty!) print ("Inl. return to category menu") print ("2. check out") print("In Select (-2) end subop int (input ) if (aubop1) mainmenu () print ("InThanks tor shopping with us categories-[ "Books","Electroni.ca","Clothing"] noltems [o,0,0 cost-[O,0,0 emainmenu(): while True: print ("Inin 1 -Books n 2 Electronics In 3-Clothingin 4 - Checkoutn") print ("In Select one of the categories or checkout (1-4):"end- op-int (inputO) if (op>-l and op 0): print ("InInSummary of shopping cartiinin) print(" %-20s %-20s %-20s "$("category", "Number tor i in range (len (noItema)): of items ", "cost of items")) print (" %-25s %-20d t.If "$(categories [1],noltens [1],cost [1])) if (noItems(11!-0) print ("Inin 1-25s 1-20d .1f Inin"("Total",sum (noItems),sum(cost))) else: print("nCart is empty!) print ("Inl. return to category menu") print ("2. check out") print("In Select (-2) end subop int (input ) if (aubop1) mainmenu () print ("InThanks tor shopping with us

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 Databases Questions!