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.
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