Its dangerous to go alone


#1



Its dangerous to go alone


Im getting the error message : Oops, try again. Your code looks a bit off. Check the Hint if you need help! Your code threw the following error: invalid syntax (python, line 18).


I've printed it out and it seems to match the description so what should I do?


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

# 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['pocket'] = ['sheashell', 'strange berry', 'lint']
print(inventory['pocket'])
inventory['backpack'].sort()
inventory['backpack'].remove('dagger')
inventory['gold'] = inventory['gold'] + 50


#2

Something isn't spelled correctly... Do you see it?


#3

yes sigh i hate my life


#4

lol xD, no need to hate your life


#5

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