What is the error?


inventory = {
'gold' : 500,
'pouch' : ['flint', 'twine', 'gemstone'],
# Assigned a new list to 'pouch' key
'backpack' : ['xylophone','bedroll','dagger','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']

inventory['gold'] = 500 + 50

'''So I am getting an error message:
Oops, try again. Did you remember to sort the list at inventory["backpack"]?
What is the error?'''

It's Dangerous to Go Alone! Take This

When the SCT is short on error messages, sometimes it issues whatever it has. It might be that the code doesn't match any patterns it is expecting.

... += 50


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