Programming/Python & Data Structures
[Baekjoon/Python3] 11721번 열 개씩 끊어 출력하기
HooNeee
2020. 12. 7. 00:45
[Baekjoon/Python3] 11721번 열 개씩 끊어 출력하기
11721번: 열 개씩 끊어 출력하기
첫째 줄에 단어가 주어진다. 단어는 알파벳 소문자와 대문자로만 이루어져 있으며, 길이는 100을 넘지 않는다. 길이가 0인 단어는 주어지지 않는다.
www.acmicpc.net
word = input()
for i in range(0, len(word), 10):
count = i + 10
print(word[i:count])