How to do it


#1

https://www.codecademy.com/courses/python-beginner-en-IZ9Ra/2/2?curriculum_id=4f89dab3d788890003000096

def compute_bill(food):
    total = 0
    for item in food:
        total = total + food[item]
        return total

not able to remove the error, how to do it??


#2

a function ends the moment a return keyword is reached, which happens in the first run of the loop. Change the indent of return so the whole loop can run


#3

food is the shopping_list. It contains no prices. Use the prices dictionary.

total += prices[item]