for
Mathematical Programming with Python
Wednesday, 08 January 2025
https://people.sc.fsu.edu/~jburkardt/classes/python_2025/for/for.html


for: repeating a block of computations using a for or while statement. Setting the loop index with the range statement or a list of values. Jumping to the next index with continue, or exiting the loop with break.

Lecture notes:

The calendar:

The greatest common divisor of A and B:

A magic matrix:

Matrix average:

Patient list:

Triangular numbers:

Assignment #1 due on Friday, 17 January:


Last revised on 10 January 2025.