Login
📚 Python for Introductory Statistics
Chapters ▾

4. Python Loops

A loop statement allows us to execute statement(s) multiple times. Two types of loops:

  1. The iterative for loop
  2. The conditional while loop

Adapted from Python for Introductory Statistics, by Simon Aman (Truman College, City Colleges of Chicago), licensed under CC BY 4.0. Changes were made: reformatted as an accessible XYZ web edition with live in-browser code cells. License: CC-BY-4.0.