MIT OpenCourseWare · November 28, 2026
Lecture 3: Iteration

At a glance
A Python lecture teaches iteration: while loops and infinite-loop pitfalls, for loops with range(start, stop, step), loop variables, a factorial example, and debugging with print statements.
Sign in for your free summary allowance