11.making a purchase


#1



why is this happening


Oops, try again. compute_bill(['banana', 'apple', 'orange', 'pear']) returned 4 instead of 10.5


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


#2

the issue was resolved in this topic


#3