From an idea to a running program

Chapter 1 of 14 · 4 lessons

A program begins with an intention: display a message, calculate a total, or process a piece of information. To make that intention useful, we express it in a form a computer can run and learn to inspect what happens.

This chapter introduces Python through small examples. It does not assume previous programming experience or require a particular editor. Code examples are for reading and exploration; there are no lesson assignments. The course ends with a single assessment after all chapters are complete.

In this chapter

  1. Programs and Python — what code is and how Python carries out a program.
  2. Seeing a result — reading print(), text, numbers, and simple calculations.
  3. Following the sequence — tracing instructions and their output in order.
  4. When a program goes wrong — separating syntax errors from logic errors and reading feedback.

By the end, we should be able to read a short Python program, explain what its output represents, and describe where to begin when its result is not what we expected.

The diagrams in these lessons are text-based and should remain understandable without visual styling. Their eventual website presentation is not yet designed.