Making a Purchase: the apple result problem


Hello from Hungary,
What am I doing wrong if the apple result is not the right one?
Thanks a lot!


food is expected to be a list. However once we define it as a value in the for statement the list vanishes.

for item in food:
    total += prices[item]


Thank you very much @mtf!


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