PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
a ='abcdefghijklmnopqrstuwxyz'
ar = a[::-1]
dict= { }
for i in a:
dict[i] = ar[a.index(i)]
w = str(input())
w = w.lower()
nw =""
for j in w:
if j == ' ':
nw+= ' '
else:
for d in dict:
if j == d:
nw+= dict[j]
print(nw)
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run