MODULE 01 · BEGINNER

Getting started with PythonPython · Module 1

Run your first program, understand values and names, and turn simple inputs into useful calculations.

5 lessons20 min readingWrite clear Python
Free, self-paced, and open to everyone. No account needed.
WHAT THIS MODULE COVERS

Getting started with Python

Run your first program, understand values and names, and turn simple inputs into useful calculations.

BEFORE YOU START

No previous programming experience. If you can type, you're ready.

WHAT YOU’LL BE ABLE TO DO

Run a saved Python file, trace variable assignments line-by-line, convert text to numbers, and understand the difference between source code and output.

THE LESSON SEQUENCE

Read in order, or jump to what you need.

Every lesson builds on the one before it. Open any lesson to read the explanation, run the examples, and try the practice challenges.

  1. 01.01
    Welcome to Python

    Write a complete tiny program and learn how to read its instructions and results.

    4 min
  2. 01.02
    Setup and your first saved program

    Understand the interpreter, terminal, and editor, then run a saved Python file reliably.

    4 min
  3. 01.03
    Variables and types

    Use names to describe values and reason about assignment, reassignment, and conversion.

    4 min
  4. 01.04
    Operators and input

    Build calculations deliberately, distinguish division operations, and convert interactive input.

    4 min
  5. 01.05
    Modules, comments, and pip

    Reuse code from the standard library, install external packages deliberately, and leave comments that explain decisions.

    4 min
MODULE SELF-CHECK

Ready to move on?

Change an input value, predict the calculation result, run the saved file, and confirm it produces your expected output.

Open the module self-check