Python · Stage 3 – Making Decisions · Lesson 19 of 50

What Is Control Flow?

Understand how a program can choose which instruction runs next.

print("First")
print("Second")
Line-by-line explanation
  1. The first line runs first.
  2. The second line runs next.
  3. The output follows that same order.

A decision can change that path. Think of a road junction: the program chooses one road based on a yes-or-no condition.