How does this work?


#1

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


#2

What is it you are struggling with? What do and don’t you understand? By given us this information we can much better reply.


#3

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