IT's Dangerous to go alone


#1

It says " Oops, try again. Did you remember to sort the list at inventory["backpack"]? "
Although i have added the function

inventory['backpack'].sort()
at line 16

Could someone please help??

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']=['seashell', 'strange berry', 'lint']
inventory['backpack'].sort()

inventory['backpack'].remove('dagger')

inventory['backpack'][0]=50

#2

inventory['backpack'][0]=50

read the instruction no.5 again :slight_smile:


#4

thnxs alot..it worked :slight_smile:


#5

I don't see what you mean


#6

If you've any problems then create a new topic please :slight_smile:
you can follow this link


#7

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