You are viewing a single comment's thread. Return to all comments →
n=int(input()) for i in range(n): x=input() print(f"{x[0::2]} {x[1::2]}")
Very simplest and efficient method to solve this question in Python
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()) for i in range(n): x=input() print(f"{x[0::2]} {x[1::2]}")
Very simplest and efficient method to solve this question in Python