Andy still


#1

inventory ['pocket'] = 'seashell', 'strange berry', 'lint'
inventory['backpack'].sort()
inventory['backpack'].remove('dagger')
inventory['gold']
inventory['backpack'] = 50
print inventory['backpack']


#2

@oliver_houghton_rhs,

inventory={}
print("#1# "+ str(inventory) )
inventory['backpack'] = ['seashell', 'strange berry','dagger', 'lint']
print("#2# "+ str(inventory) )
inventory['backpack'].sort()
print("#3# "+ str(inventory) )
inventory['backpack'].append(50)
print("#4# "+ str(inventory['backpack']) )
inventory['backpack'].remove('dagger')
print("#5# "+ str(inventory['backpack']) )
inventory['gold'] = 200
print("#6# "+ str(inventory) )

[output]

#1# {}
#2# {'backpack': ['seashell', 'strange berry', 'dagger', 'lint']}
#3# {'backpack': ['dagger', 'lint', 'seashell', 'strange berry']}
#4# ['dagger', 'lint', 'seashell', 'strange berry', 50]
#5# ['lint', 'seashell', 'strange berry', 50]
#6# {'backpack': ['lint', 'seashell', 'strange berry', 50], 'gold': 200}