Unable to understand the problem


#1



unable to call the function in the end statement


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


#2

the purpose of compute_bill is to, well, compute a bill. So we should return total cost, not item


#3

thanks
i solve the problem


#4