• + 1 comment

    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])