If anyone is on this level or past it, I could use some help. I've been over it a bunch and can't figure out what's wrong. It's outputing what it asks for, but still gives me a message saying that it's not correct and I can't proceed.
Here is my code:
prices = {"banana":4, "apple":2, "orange":1.5, "pear":3} stock = {"banana":6, "apple":0, "orange":32, "pear":15}
for x in prices and stock: print(x) print("price: " +str(prices[x])) print("stock: " +str(stock[x]))
(of course the three print statements are indented into the 'for' loop)
And this is what it tells me:
"Oops, try again! You should need exactly three print statements!"
Although the output is what it says it wants. Any help would be greatly appreciated. Thanks
|