e.g.
'abcdef'.split(2) == ['ab', 'cd', 'ef'] # not the same as .split("2")
[1, 2, 3, 4, 5, 6].split(3) == [[1,2,3], [4,5,6]]
Or one can use the `grouper` from the recipe
https://docs.python.org/3/library/itertools.html#itertools-r...
Pairwise would give you ['ab', 'bc', 'cd', 'de', 'ef']. It's not a split.
e.g.
'abcdef'.split(2) == ['ab', 'cd', 'ef'] # not the same as .split("2")
[1, 2, 3, 4, 5, 6].split(3) == [[1,2,3], [4,5,6]]
Or one can use the `grouper` from the recipe
https://docs.python.org/3/library/itertools.html#itertools-r...