Making A Purchase


Making a Purchase

Write your code below!

def compute_bill(food):
total = 0
for item in food:

    total = total + prices[key]

return total

this is the error which i encounter

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


Did you mean to write,




This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.