Skip to content
Learn Python with BNHR

Module 3 · Beginner

Collections

Module 3 of Python Essentials: lists, tuples, sets and dictionaries, and a barangay's records as a list of dictionaries. Its sections, its notebooks to read on the web, and the companion's solutions and explanations.

Module 3Level Beginner
On this page
  1. Overview
  2. What you do
  3. The module’s notebooks
  4. Quizzes
  5. Certification and support

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.

  1. Lists: indexing, slicing, changing and sorting
  2. Tuples and unpacking; sets
  3. Dictionaries, and records as dictionaries

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.

Saved in this browser only

Certification and support

We offer additional resources, certificates, ongoing support, and other perks to those who join our instructor-led training.

Join an upcoming training to take this as an instructor-led course, or contact us to arrange one for your team or organization.

Something new

Identify results
LayerExplore a debugging drill
Debugging drill D2Debugging drill: the report that goes wrong
AboutThe second debugging drill of Arrays & DataFrames, after module 5: five mistakes that put wrong numbers in a survey report, to predict, trace, fix and explain.
CourseArrays & DataFrames, free