a=int(input())
l=[input().strip() for i in range(a)]
for i in l:
m=''; k=i[1:len(i)-1][::-1];m+=i[0]+k+i[-1]
print(m)
a=int(input())
l=[input().strip() for i in range(a)]
for i in l:
m=''; k=i[1:len(i)-1][::-1];m+=i[0]+k+i[-1]
print(m)
Hi friends....
In this blog I'm going to give answer for daily test skillrack program, daily challenges and kick start programs and give some coding techniques.
It'll be helpful for u sure and make it usefull
Learn More →
0 Comments