This is not working


#1

def compute_bill(food):
total=0
for item in food:

    total = total + food[item]
return total

this is not working plz help


A tiny problem
#2

food is a list, not a dictionary.

prices[item]

#3

thank u very much bro


#6

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