How do i add to the gold? SOLVED


#1




How do i add to the gold?


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')
'gold' + 50

wait i did it soz


#2

HOW DO I CLOSE THIS I HAVE FIGURED IT OUT? v


#3

how come you can figure it out within 5 minutes of posting on the forum? next time, try 5 minutes longer before posting on the forum

You can't close topics


#4

ok thanks. I suddenly remembered.


#5

the forum is for if you are stuck a longer time at one exercise and really can't figure it out.


#6

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