July 20, 2021
def solution(s): length = len(s) half = length // 2 if length % 2 == 0: return s[(half)-1:half+1] else: return s[half]
def string_middle(str): return str[(len(str)-1)//2:len(str)//2+1]
GitHubVelogFacebook