728x90
반응형

입력을 10 단위로 슬라이싱 하고 순서대로 출력해주면 된다.

s = input()
for i in range(len(s)//10 + 1):
    print(s[10*i:10*(i+1)])
728x90
반응형

+ Recent posts