How to fix the repeating of the last element of the list and not showing the other elements of list?
How to fix the repeating of the last element of the list and not showing the other elements of list? Question: cart = [‘Fries’,’Nuggets’,’Chicken’] quantity = [1, 2, 3] price = [123, 45, 65] amount = 0 def Check_Inventory(): print(f’Orders tttt Qty. tt Price (php) n’) for count, mycart in enumerate(cart): while len(mycart) != 10: …
Total answers: 3