def compute_bill(food): total = 0 for i in food: if stock[i] > 0: total = total + prices[i] stock [i] = stock[i] - 1 return total
File "python", line 22
total = total + prices[i]
IndentationError: expected an indented block
I expect it will work. In earlier exercise this piece of code worked
Replace this line with your code.