How do I process the elements of a sequence in batches, idiomatically?
For example, with the sequence \"abcdef\" and a batch size of 2, I would like to do something
but the more general way would be (inspired by this answer):
for i in zip(*(seq[i::size] for i in range(size))): print(i) # tuple of individual values