itertools
itertools — Functions creating iterators for efficient looping
https://docs.python.org/3/library/itertools.html
Example
MetPy Mondays
`#171​​ - Using Count and Cycle from Itertools : Unidata Developer's Blog
https://www.unidata.ucar.edu/blogs/developer/entry/metpy-mondays-171-using-count
count, cycle
`#172​​​ - Making Combinations with Itertools : Unidata Developer's Blog
https://www.unidata.ucar.edu/blogs/developer/en/entry/metpy-mondays-172-making-combinations
permutations, combinations_with_replacement, combinations
Tips
All You Need to Know About the Python Itertools Module
4 Python Itertools Filter Functions You Probably Didn’t Know - KDnuggets
Exploring Infinite Iterators in Python’s itertools - KDnuggets
Using reversed to loop in reverse in Python
#loop