Lesson 2 of 4Module 1 · 0% of course
Python Foundations · Names & data

Conditionals & loops

How a program decides and repeats: if/elif/else, truthiness, for over iterables, while, break/continue, and the loop patterns (accumulate, filter, search) you'll use every day.

25 min · 9 steps · videoJump to quiz ↓
CS50P - Lecture 2 - Loops CS50 · 30 min
Open in YouTube
Step 1 of 9 · Overview25 min read ·
Key idea
Prereqs: Lesson 1 (names & mutability). Next: Functions, arguments & scope. This is CS50P weeks 1–2 in one sitting.
Next: 1. Decisions: if / elif / else
‹ PrevNext ›