11. making a purchase


#1



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.


#2

Hi this line

total =+ prices[item]

you wrote =+ isntaed of +=


#3

Thanks, that did the trick!


#4

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