def compute_bill(food): total = 0 for food in shopping_list: total=total+prices[food] return total
for food in shopping_list: to be
for item in food:
now any list put into compute_bill(food) will work.
Here is my code that is correct, but still spits out an error
def compute_bill(food: total = 0 for item in food: total += prices[item] return total
I am not sure if there is a bug with this lesson or some tiny change that needs to be made but it's really bugging me.