Further Resources¶
Lazy Looping: The Next Iteration: practical uses of generators and lazy looping
Loop Better: a deeper look at iteration: my article and talk on how iterators work in Python
How to make an iterator: My article about how generator functions are the easy way to make an iterator
range is not an iterator:
range
objects seem like an iterator, but they aren’t!Comprehensible Comprehensions: My talk on comprehensions
How For Loops Work: a shorter explanation of the iterator protocol
✕
↑
Write more Pythonic code
I send out 1 Python exercise every week through a Python skill-building service called Python Morsels.
If you'd like to improve your Python skills every week, sign up!
You can find the Privacy Policy here.reCAPTCHA protected (Google Privacy Policy & TOS)