Dictionaries

Spring 2026

https://www.py4e.com/lessons/dictionaries

https://runestone.academy/ns/books/published/py4e-int/dictionaries/toctree.html

https://www.keithdillon.com/index.php/python-for-data-science-spring-2026/

GitHub Classroom: https://classroom.github.com/classrooms/250035910-keithops-bds754-s26

Google CoLab: https://colab.research.google.com/notebooks/welcome.ipynb

In [13]:
lst = dict() #[0]*10
#len(lst), lst

lst[0] = 21
lst['age'] = 182

lst
Out[13]:
{0: 21, 'age': 182}