# create a mapping of state to abbreviation
states = [
'Oregon': 'OR',
'Florida': 'FL',
'California': 'CA',
'New York': 'NY',
'Michigan': 'MI'
]
I am learning Python from Learning Python The Hard Way. In example 39 of the book, I typed the same code as shown above for creating a dictionary, even copied and pasted it, but I m getting an error
E0001:invalid syntax (<string>, line 3) and it is pointing at :. What went wrong?