You are viewing a single comment's thread. Return to all comments →
n=int(input())
def bunedir(word_list : list) : for word in word_list :
evens = "" odds = "" for idx , val in enumerate(word): if idx % 2 == 0 : evens += val else : odds += val print(f"{evens} {odds}")
for _ in range(n): word_list = list(input().splitlines()) bunedir(word_list)
Seems like cookies are disabled on this browser, please enable them to open this website
Day 6: Let's Review
You are viewing a single comment's thread. Return to all comments →
n=int(input())
def bunedir(word_list : list) : for word in word_list :
for _ in range(n): word_list = list(input().splitlines()) bunedir(word_list)