Specialty Digest

Global English editionLearners’ Study Dashboard — in development
The Knowledge Library for All

Online Courses / University Track / Python from Zero

Module 4 of 8

Lists and Dictionaries

Hold many values under one name. Use lists for ordered values, dictionaries for lookup by name, and loops to total, search and count what they hold.

  • 6 hours
  • Outcomes O4
  • Checkpoint: 80% to unlock Module 5

Big idea. A list is found by position and a dictionary by key, and choosing the right one makes a program shorter and safer.

Outcomes served. O4 (store and process collections of data).

Plan your six hours

Assumed. Modules 1 to 3: variables, if statements and loops.

Where this topic appears in practice. A price list, a class register, a stock count and a set of survey answers are all collections. This module shows how a program holds and uses them.

Privacy. Your answers stay with you. This course does not store, collect or send anything you write or tick.