# Chapter 23 example: nested dicts and lists. player = { "name": "Keiko", "position": {"x": 0, "y": 5, "z": -3}, "inventory": ["sword", "potion", "map"], } print(player["position"]["x"]) print(player["position"]["y"]) print(player["inventory"][0]) print(player["inventory"][1])