Oops, try again. calling compute_bill with a list containing 1 apple, 1 pear and 1 banana caused the following error: local variable 'stock' referenced before assignment. I have no idea what this means. All I did was follow the directions.
def compute_bill(food): total = 0 for key in food: if stock >=0: total += prices[key] stock -= 1 return total