Here is the link to the exercice:
The code doesn't run if i dont use the word "prices" as a dictionnary input for my function, and I am wondering why. If I try to make it work for just a nonspecific "food" dictionnary, it stops working:
Oops, try again. compute_bill(['apple']) resulted in a TypeError: list indices must be integers, not str
def compute_bill(food): total = 0 for item in food: total += food[item] return total
Thanks for your help!