• + 0 comments

    Python code

    for _ in range(int(input())):
        s=input()
        even=s[::2]
        odd=s[1::2]
        print(even,odd)