t=int(input())
for i in range(t):
    texte=input()
    textecopie=texte
    textecopie=textecopie.lower()
    lon=len(textecopie)
    check=0
    if lon%2==0:
        for n in range(lon//2):
            if textecopie[n]==textecopie[lon-1-n]:
               check+=1
        if check==lon/2:
           print(texte)
    else:
        for n in range((lon-1)//2):
            if textecopie[n]==textecopie[lon-1-n]:
               check+=1
        if check==(lon-1)//2:
           print(texte)
    

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: