Python generator that groups another iterable into groups of N
I’m looking for a function that takes an iterable i and a size n and yields tuples of length n that are sequential values from i:
I’m looking for a function that takes an iterable i and a size n and yields tuples of length n that are sequential values from i: