• + 0 comments

    In Python

    def test_case(): s = input() e=[] o=[] for k in range(len(s)): if k%2==0:
    e.append(s[k]) else: o.append(s[k]) s= f"{"".join(e)} {"".join(o)}" return s

    for i in range(int(input())): print(test_case())