Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- t = int(input())
- while t > 0:
- s = list(input())
- for i in range(len(s)):
- if s[i].isalpha():
- s[i] = chr(ord(s[i])+3)
- s.reverse()
- for i in range(len(s)//2, len(s)):
- s[i] = chr(ord(s[i])-1)
- print(''.join(s))
- t -= 1
Advertisement
Add Comment
Please, Sign In to add comment