I cannot understand and correct this error


#1

Below is what I directly copied from the course,however **I did make indentation for “return total”**def compute_bill(food):

def compute_bill(food):
	total = 0
  for item in food:
      if stock[item] > 0:
          total = total + prices[item]
          stock[item] -= 1
  return total

here is the error message
IndentationError: unindent does not match any outer indentation level


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.