Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Second solution in Clear category for Split Pairs by mscislaw
def split_pairs(text):
output = []
for i in range(0, len(text), 2):
if i + 1 < len(text):
output.append(text[i] + text[i + 1])
else:
output.append(text[i] + '_')
return output
May 2, 2021