How does this work?


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


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


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