Here is the strange thing,I did make indentation for wherever the indentation error is,and when I copied my code here, the place I had made my indentation(also the place showed in error message) just does not have any indentation.WHAT is going on???
def compute_bill(food): total = 0 for item in food: if stock[item] > 0: total = total + prices[item] stock[item] -= 1 return total
File “python”, line 22
total = total + prices[item]
IndentationError: expected an indented block