Given a string write a program to print the mirror of string in Alphabetical order to create a secret message
Note Mirror means a with z , b with y and so on
letters1='abcdefghijklm'
letters2='zyxwvutsrqpon'
s=input()
result=''
for x in s:
if x.lower() in letters1:
result=result+letters2[letters1.find(x.lower())]
elif x.lower() in letters2:
result = result + letters1[letters2.find(x.lower())]
print(result)
Comments
Leave a comment