Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
1-liner: right padded '_' using ljust solution in Creative category for Split Pairs by Stensen
from re import split
split_pairs = lambda a: map(lambda i: i.ljust(2, '_'), filter(None, split('(\w{2})', a)))
Sept. 29, 2020