dictionaries

Dictionaries store data with keys and values, easy to access.

python shell for dictionaries

Dictionaries are keys and values,
In Python they’re quite fun,
Accessing and retrieving,
Can be easily done.

In this Python session, the student is introduced to dictionaries and their usage in Python. They learn how to create a dictionary, how to access values within a dictionary, and how to retrieve keys and values separately. The student also learns about the `dict_keys` and `dict_values` functions and how they can be used to retrieve the keys and values of a dictionary. Throughout the session, the student is shown examples of dictionaries with different key-value pairs and is encouraged to practice creating their own dictionaries and using them to store and retrieve information. The session provides a comprehensive overview of dictionaries in Python, making it easier for the student to understand and utilize them in their own programming.