Making a Purchase: the apple result problem


#1


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


#2

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]

#3

Thank you very much @mtf!


#4

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