• + 41 comments

    Or you can just do:

    for N in range(int(input())):
        S = input()
        print(S[::2], S[1::2])