Pieces of Py #4 Using itertools.groupby

Posted on Sun 01 September 2019 in Python • Tagged with Python, Pieces of Py, Itertools • 3 min read

During some of the exercises I did on my first round of #100DaysOfCode there was a need to group an iterable by a certain field in the data structure. I found out, that was a function called groupby in the built-in itertools library that can be used for it.

In …


Continue reading