LOOP, STRING, LIST, CONDITION

 



l=[]
T=int(input())
while(1<=T<=10):
    for i in range(T):
        str1=input()
        l.append(str1)
    break
l_len=len(l)
for s in range(l_len):
    even=""
    odd=""
    word=l[s]
    w_len=len(word)
    for m in range(w_len):
        if m%2==0:
            even=even+word[m]
        else:
            odd=odd+word[m]
    print(even,odd)






Comments

Popular posts from this blog

CLASS AND OBJECT

LIST INPUT FROM USER