The Capstone

The Capstone

Two projects close the course. Each is a small program built from several functions, and each draws on most of what you have practiced:

Contact book — a dictionary-backed address book with add, update, remove, and export. It uses dictionaries, exceptions, loops, sorted, and f-strings.

Grade report — a program that reads scores from a file and produces a formatted report. It uses file reading, split, dictionaries, conditionals, and string formatting.

The exercises are larger than before but contain nothing new. Every required piece has appeared in an earlier section, and each project's instructions name the functions to build, one at a time.

Two working habits matter at this size:

  • Build one function, run the code, and check its output before starting the next. The starter code calls the functions so Run shows your progress.
  • When a check fails, read which function it names. The failure report is the fastest route to the mistake.

Mark this page complete and start the first project.

Back to course