divmod solution in Clear category for Middle Characters by flpo
def middle(text): d, m = divmod(len(text), 2) return text[d+m-1:d+1]
May 17, 2018
Comments: