0 must be left out. One line is missing, marked ____.
orders = [("tea", 2), ("cake", 0), ("bun", 3)]
bill = 0
for item, qty in orders:
if qty == 0:
____
bill += qty * 10
print(item, end=",")
print(bill)
Which line fills the gap so that the output is exactly tea,bun,50?Log in to join the discussion.
Loading…