Not sure whats wrong? Invalid Syntax


#1

inventory = {
'gold' : 500,
'pouch' : ['flint', 'twine', 'gemstone'], # Assigned a new list to 'pouch' key
'backpack' : ['xylophone','dagger', 'bedroll','bread loaf']
'pocket' : ['seashell','strange berry','lint']
}

Adding a key 'burlap bag' and assigning a list to it

inventory['burlap bag'] = ['apple', 'small ruby', 'three-toed sloth']

Sorting the list found under the key 'pouch'

inventory['pouch'].sort()

Your code here

inventory['backpack'].remove('dagger')
inventory['gold'] = inventory['gold'] + 50
This code returned the following error
File "python", line 5
'pocket' : ['seashell','strange berry','lint']
^
SyntaxError: invalid syntax
Not really sure how to fix this any help is appreciated


#2

You are missing a comma at the end of your backpack line.


#3

Thank you. This fixed the problem