4. Python Loops
A loop statement allows us to execute statement(s) multiple times. Two types of loops:
- The iterative
forloop - The conditional
whileloop
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.