Dictionaries: Group 1
1. Given the dictionary, answer the questions:
inventory = {
'gold' : 500,
'pouch': ['flint', 'twine', 'gemstone'],
'backpack': ['xylophone', 'dagger', 'bedroll', 'bread loaf']
}
1. Write code that will print out 500, the value associated with key gold.
2. Write code that will pick out the word 'twine' from inside the dictionary, using indexing
3. Add 50 to the number stored under the 'gold' key
4. Add a key to inventory called 'pocket', whose value is a list consisting of the strings 'seashell', 'strange berry', and 'lint'
5. Remove 'dagger' from the list of items stored under the 'backpack' key