/* code block */
반응형

 

반복문으로 열글자씩 끊어 출력했다.

 

1
2
3
4
5
6
7
8
9
10
string = str(input())
 
length = len(string)
 
cut_point = 0
 
while True:
    print(string[cut_point:cut_point+10])
    cut_point+=10
    if cut_point > length: break
 

 

반응형

+ Recent posts