Is there a function in the standard library, that can generate an iterable of 2-tuples of an iterable that is guaranteed to have an even amount of elements?
INPUT = 'ABCDEF'
OUTPUT = [('A', 'B'), ('C', 'D'), ('E', 'F')]
I could not find anything fitting within itertools
.