How can you loop based on a condition in Python?
forloops are for looping over iterables
for loops are for looping over iterables:
This is a premium screencast available only to active Python Morsels subscribers.
Feel free to watch some of the free screencasts in the Looping series.
Intro to Python courses often skip over some fundamental Python concepts.
Sign up below and I'll share ideas new Pythonistas often overlook.