def solution(s): if len(s) % 2 == 1: return s[int(len(s)/2)] else: return s[int(len(s)/2)-1:int(len(s)/2)+1]
def solution(s): return s[(len(s)-1)//2:len(s)//2+1]
a("solution") > s[3:5] a("solutions") > s[4:5]