In this hands-on tutorial we will reinvent the wheel and implement the module itertools in plain Python.
We'll do that because that will teach us a lot about Python:
iter and next do;__iter__ and __next__ play a part in all this; anditertools, a module with plenty of useful tools for your day-to-day iterations.And most importantly, we'll do it because it's genuinely fun!