11. Making a Purchase


I am really stuck....please help


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 (())


thank you very much !!!