Investing in Stock


#1

Hi I dont understand the reason of the error:

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

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

Oops, try again. Did you remember to create a dictionary called stock?


#2

You're missing your commas for each key-value pair in the stock dictionary.

See prices dictionary for clue.

I hope this helps.


#3

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