11. making a purchase


def compute_bill(food):
total = 0
for item in food:
total =+ prices[item]
return total

It won't let me pass, What's wrong with my code???

Replace this line with your code.


Hi this line

total =+ prices[item]

you wrote =+ isntaed of +=


Thanks, that did the trick!


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