Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Simple solution in Clear category for Split Pairs by mindaugas.dadurkevicius
def split_pairs(a):
res = []
if len(a) % 2 != 0:
a += '_'
for i in range(len(a) // 2):
res.append(a[i*2:i*2+2])
return res
June 18, 2021