Slicing an iterator

Posted on Sun 22 September 2019 in Python • Tagged with iterable, iterator, islice, itertools

Explains the method used to slice any iterable not just sequences.


Continue reading

How to perform lstrip of an iterable?

Posted on Sun 18 August 2019 in Python • Tagged with itertools, dropwhile, lstrip, iterable, iterator

Using the dropwhile functions in the itertools module


Continue reading

Grouping items using itertools groupby

Posted on Sun 04 August 2019 in Python • Tagged with itertools, groupby, looping

Using the groupby function in itertools module


Continue reading