Please help me with this, I am so confused. What I am doing wrong? Thanks in advance.
Write your code below!
def compute_bill(food): total = 0 for item in food: if stock[item] > 0: total += prices[item] stock[item] -= 1 return total
This is what I get:
Oops, try again. calling compute_bill with a list containing 7 bananas resulted in 28 instead of the correct 24
Replace this line with your code.