I am fairly certain my code should be working properly however every time I run i get an error message like:
Oops, try again. compute_bill(['banana', 'apple', 'orange', 'pear']) returned 4 instead of 10.5
This is my code:
total = 0
for key in food:
total = total + prices[key]
any ideas as to why its not working?