One household is a handful of values; a barangay is hundreds of households. This module covers the four collections you will use every day, and how a barangay’s records fit in them: a list of households, each one a dictionary of its values. It also covers the most common surprise with lists, and why a function should build a new list rather than change the one it is given.
What you do
Section titled “What you do”- Lists: indexing, slicing, changing and sorting
- Tuples and unpacking; sets
- Dictionaries, and records as dictionaries
The module’s notebooks
Section titled “The module’s notebooks”- 20_collections.ipynbCollectionsRead itCompanion · 5 exercises
The notebooks are in your course folder; here you can read them without running anything.
Quizzes
- Check-inAt the end of the module. A short check on “Collections”, and how ready you feel; its answers show as soon as you submit.Check-in: Collections ↗
The quizzes are on BNHR Quizzes and count toward nothing. Learning on your own, a quiz opens as the self-paced one; while a training runs, it asks which training you are in.