A Day at the Supermarket / 11


#1

Please help me I'v followed the instructions but not working!


#2

Code that we can run, please. This pictures helps nobody.


#3

sorry that's the code:

shopping_list = ["banana", "orange", "apple"]

stock = {
"banana": 6,
"apple": 0,
"orange": 32,
"pear": 15
}

prices = {
"banana": 4,
"apple": 2,
"orange": 1.5,
"pear": 3
}

Write your code below!

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


#4

Have you tried running that? That's not what's in your screenshot, run it yourself and see.

Also, in what way does it behave differently from what you want? We have to know what we are looking for.