Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Using list comprehension III solution in Clear category for Split Pairs by WreakHavoc
def split_pairs(a):
word = a + '_' if len(a) % 2 else a
return [word[i:i + 2] for i in range(0, len(word), 2)]
June 26, 2020