Copy and paste the code below into your IDE. ```python places = ["A clearing in a forest", "An old wooden cabin", "A dark cave"] moves = [{"n": 1, "s": 2}, {"s": 0}, {"n": 0}] objects = {"spanner":0, "lockpick":0, "spade":2} location = 0 def print_objects(): for key, val in objects.items(): if val == location: print(key) def Main(): ans = "" global location print(places[0]) print_objects() while ans != "bye": ans = input("What now?") if ans in moves[location]: location = moves[location].get(ans) print(places[location]) print_objects() else: print("I can't move that way") Main() ``` # Exercise 1. Look at the objects dictionary \`objects = {"spanner":0, "lockpick":0, "spade":2}\`. What do the keys in the dictionary represent? (hint: the key is the part before the colon:) 2. What do the values in the dictionary represent? 3. Add "rope" to the list of objects. Place it in the cave. 4. Add "torch" to the list of objects. Place it in the cabin. 5. Run the code and check the objects are where you think they should be. 6. Look at the print\_objects() function. Explain how it works ## Extension 1. Draw your own map for a game. Implement it. Modify the code so that you are using your map. 2. Add your own objects to the map. 3. Add code so that if the user types "l" (for look) the game prints out the current location and a list of objects.