You are viewing a single comment's thread. Return to all comments →
t = int(input())
for _ in range(t): s = input() even_chars = s[::2] odd_chars = s[1::2] print(even_chars, odd_chars)
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 →
t = int(input())
for _ in range(t): s = input() even_chars = s[::2]
odd_chars = s[1::2]
print(even_chars, odd_chars)