A Day at the Supermarket - Making a purchase
I got my code to work but I don't quite understand why it does.
for items in food:
total += prices[items]
In line 3 I call "for items in food". What does food represent because none of my lists or dictionaries are called that. I'm confused by how you can use food and it makes computations.
Replace this line with your code.