Python, Python Dictionaries, Data Science, Data Structures, Data Analysis.
key within Hermione’s dictionary. The print function then outputs this value. Here is the code. print(characters.get("Hermione").get("wand")) Here is the output. You can also use get() over the square bracket notation. print(characters["Harry"]["house"])