Get one quick Python tip each week Weekly Python advice: one quick Python tip every week

Python's "while" loop PREMIUM

Series: Looping
Trey Hunner smiling in a t-shirt against a yellow wall
Trey Hunner
3 min. read 2 min. video Python 3.7—3.11
Python Morsels
Watch as video
02:07

How can you loop based on a condition in Python?

for loops are for looping over iterables

Python's for loops are for looping over iterables:

...

Concepts Beyond Intro to Python

Intro to Python courses often skip over some fundamental Python concepts.

Sign up below and I'll share ideas new Pythonistas often overlook.

Python Morsels
Watch as video
02:07