# Chapter 23 example: a dict holding both a list and named keys. # Python keeps these as separate structures. The steps list and the # extra keys live together in one dict. quest = { "steps": [ "Speak to the elder", "Collect 5 herbs", "Return to camp", ], "name": "Healer's Errand", "reward": 50, } print(quest["name"]) # Healer's Errand print(quest["steps"][0]) # Speak to the elder print(len(quest["steps"])) # 3 for i, step in enumerate(quest["steps"], 1): print(f"{i}. {step}")