• + 1 comment

    My python3 solution. Let me know if there are any improvements to be made

    args = int(input().strip())
    
    for _ in range(args):
        
        text = input().strip()
        
        for i in range(len(text)):
            even = text[::2]
            odd = text[1::2]          
        print(f"{even} {odd}")