Whats wrong with me codzz?


#1

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

Oops, try again. compute_bill(['apple']) returned 1.5 instead of 2


#2

Maybe you have a problem with formatting. Try to fix the indentation of the lines like this:

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