Practical Coding in Python

Learn to write and validate your own code

Darren Kessner, PhD

(revised September 1, 2025)

Previous: 3. Loops & Algorithms

hello_loops

Output:

things:
1.23
666
juggling balls

while loop
0
1
2
3
4

continue and break
1
3
5
7

Next: