Dictionary "stock"


#1



I'm stuck at the exercise called "Investing in stock". http://bit.ly/2iPZXZI


I created a dictionary called "stock", but it says Oops, try again. Did you created a dictionary called stock?
An error message at the terminal is

  File "python", line 10
    "apple": 0
          ^
SyntaxError: invalid syntax


I expected, that it will work.


My code is on gist: https://gist.github.com/27a4095516bac85daff7ce683817b720

Whole screenshot is here:


#2

You left out the commas between each key-value pair of your stock dictionary.


#3

Thank you :slight_smile:


#4

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