RANIARANIA Academy

Control Flow — Conditionals & Loops

Learn how Python makes decisions and repeats work using if/elif/else, truthiness, while and for loops, range(), and loop control with break, continue and pass. This beginner course builds the control-flow fluency the Python Institute PCEP exam expects, through runnable examples and a hands-on lab.

Watch the free preview

The if statement and boolean conditions — free to watch, no account needed.

Python: Foundations BEGINNER · 150 min · Certificate on completion · 3 CPD points

What you'll learn

  • Write conditional logic using if, elif and else with correct indentation
  • Apply Python truthiness rules to evaluate any value as a condition
  • Repeat work with while and for loops driven by range() and sequences
  • Control loop flow using break, continue, pass and the loop else clause
  • Combine nested loops and conditionals to solve real programming problems

Syllabus

Making Decisions with if/elif/else
The if statement and boolean conditionsFree preview15 min
elif, else and truthiness15 min
Repeating Work with Loops
The while loop15 min
The for loop and range()15 min
Controlling Loop Flow
break, continue and pass15 min
The else clause on loops15 min
Combining Control Flow
Nested loops15 min
Putting it together — guards and menu loops15 min
Lab — 10 Programming Exercises & Solutions
Programming Exercises 1–515 min
Programming Exercises 6–1015 min