How to do it


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??


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


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

total += prices[item]