Despite the fact that the result is correct ($72) I receive the following error message:
Oops, try again. compute_bill(['apple']) returned 0 instead of 2
def compute_bill(food): total = 0 for item in food: total += stock[item] * prices[item] return total print compute_bill(shopping_list)
What am I doing wrong? Thanks!