I don't mean to hijack this conversation, but I would like to see if you could explain one little thing for me.
With the code
def compute_bill(food): total = 0 for items in food: total = total + prices[items] return total print compute_bill(shopping_list)
for items in food
We are saying whatever is in FOOD we want the information that's stored inside there.
What I don't understand is how we can use ITEMS inside this
How is the word ITEMS now linked with the informations inside PRICES when the FOR is linked with FOOD.
Can you explain this?