You are viewing a single comment's thread. Return to all comments →
That was for python 3, Here you go for python 2:
for i in range(int(raw_input())):s=raw_input();print(s[::2]+" "+s[1::2])
Seems like cookies are disabled on this browser, please enable them to open this website
Equal
You are viewing a single comment's thread. Return to all comments →
That was for python 3, Here you go for python 2:
for i in range(int(raw_input())):s=raw_input();print(s[::2]+" "+s[1::2])