11. Making a Purchase


#1


I am really stuck....please help


#2

your for in loop:

for item in prices(food)

why prices(food)? Food is the function parameter, and the function takes a list (shopping_list for example) as argument when called. you can simple loop over the items in the list with:

for item in food:

also, on line 21, if you want to access a value from a dictionary (for example the prices dictionary) use square brackets ([]), not normal brackets (())


#3

thank you very much !!!