• + 0 comments

    My code Python 3

    n = int(input())
    for _ in range(n):
        s = input()
        print(s[::2] + ' ' + s[1::2])