Free learning

Free learning

Lessons you can read without signing in, with practice that is checked instantly. The full learning path, saved progress and Null, the AI mentor, come with a free account.

The Python execution model

How a Python program runs step by step, what the program state holds at a given moment, and how to follow it with a variable table.

Level: Beginner · Free, no sign-in required

What you will learn

  • Say which statement of a short program runs in which step.
  • Write down a program's variable table step by step.
  • Predict the result of assignments before you run the code.

Lessons

  1. Execution orderAvailable with an account
  2. Program state and the variable tablePublic lesson
  3. Right side first: assignment and rebindingAvailable with an account
  4. Output and side effectsAvailable with an account

More reading