Invalid Syntax - exercise 7


#1

It says I have invalid syntax for the second " mark after apple in the stock dictionary. I don't believe anything is wrong though. Thank you.

prices = {
    "banana": 4,
    "apple": 2,
    "orange": 1.5,
    "pear": 3
}
stock = {
    "banana": 6
    "apple": 0
    "orange": 32
    "pear": 15
}

#2

Can you send a link?


#3

In the stock dictionary you are missing the commas that separate the key value pairs.

sw0rdsdance, here is the link that is being referenced:
https://www.codecademy.com/en/courses/python-beginner-en-IZ9Ra/1/2?curriculum_id=4f89dab3d788890003000096


#4

Yep! No commas--no pass.


#5

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