You are viewing a single comment's thread. Return to all comments →
solution in python 3:
n = int(input()) for _ in range(n): a= "" b= "" S = str(input()) for i in range(len(S)): if i%2 == 0: a += S[i] elif i%2 !=0: b+= S[i] print(a+" "+b)
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 →
solution in python 3: