Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
wrap from textwrap solution in Clear category for Split Pairs by sotirr
from typing import List
from textwrap import wrap
def split_pairs(a: str) -> List[str]:
return wrap(a, 2) if len(a) % 2 == 0 else wrap(a + '_', 2)
May 22, 2020