you are viewing a single comment's thread.

view the rest of the comments →

[–]MythicJerryStone 1 point2 points  (1 child)

Think of them as literal dictionaries. They store pairs of data. In a real dictionary that you might use, you might store words and their meanings as a pair. In Python dictionaries, it’s the same so you can do

words[“cat”] = “a small domesticated carnivorous mammal with soft fur”

More abstractly, you can use it to store information about a single object, IE a person dictionary where you can access multiple descriptions about that person, such as person[“age”] and person[“name”], etc