Okay it has been five hours since I made that other post and I’m still stuck. I’m also just… beyond frustrated. I made a new post because my other one stopped getting replies. Maybe the guy who was helping me is off the clock, but I am going out of my mind and can’t wait until tomorrow to get this over with.
Right now my code looks like this:
- I’m pretty sure that parameter
foodis supposed to reappear somewhere in the function, but I don’t know how, why, or where. The instructions mention a "
foodlist" but I don’t know what that means. Was I supposed to make a
foodlist? Is it referring to
- I know
return totalat the end is going to give me
7.50because that’s the sum of
- I’m pretty sure I’m not allowed to simply list the individual items and manually add them to
total, but that’s the only solution I can come up with, since all the prices are stored in
prices. However, I also can’t make a
pricesbecause it has one too many keys. Maybe there’s some Python sorcery that makes
shopping_listinteract with the
pricesdictionary, but if there is I can’t find it in my notes.
- I feel like it wants me to somehow incorporate
shopping_listbut I can’t imagine what I’m supposed to do with it.
- I’ve also tried
total = total + prices["banana"] + prices["apple"] + prices["orange"]and
total = total + prices["banana", "apple", "orange"]and they didn’t work.