Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- T = int(input())
- for i in range(T):
- s = list(input())
- mid = int(len(s)/2)
- out = ''
- for j in range(mid):
- out = s[j] + out
- print(out)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement