https://programmers.co.kr/learn/courses/30/lessons/12903?language=python3
ํ์ด
# ํ๋ก๊ทธ๋๋จธ์ค 1๋จ๊ณ - ๊ฐ์ด๋ฐ ๊ธ์ ๊ฐ์ ธ์ค๊ธฐ
def solution(s):
answer = ''
length = len(s)
if length % 2 == 0:
answer = s[length//2-1:length//2+1]
else:
answer = s[length // 2]
return answer