Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Middle Characters by tokiojapan55
def middle(text):
length = len(text)
return text[length//2-1+length%2:length//2+1]
June 2, 2020
Comments: