Why does it say "food list"?



<Below this line, add a link to the EXACT exercise that you are stuck at.>

<In what way does your code behave incorrectly? Include ALL error messages.>

<What do you expect to happen instead?>


Replace this line with your code.

<do not remove the three backticks above>

When it implies 'prices' dictionary? That is confusing.


it doesn’t, the argument at function call should be a list of products the customer wants to buy, for example the shopping_list we defined earlier:

# function call
print compute_bill(shopping_list)

so food is a list


Side note: If you have more questions in the future, it’s good to know how to format your code in the post so that it’s easier for others to offer their help. You can refer how to format code here.

For the right advice or code review, share the lesson name, the webpage link, the step you are struggling on, also the code you tried and sometimes the error message that pops up. :thinking:
All of this information is really helpful for you to mull over and it introduces us to the problem so we can point you in the right direction in a quickly :handshake: :tada:


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