- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path01.py
More file actions
Latest commit
20 lines (17 loc) · 552 Bytes
/
Copy path01.py
File metadata and controls
20 lines (17 loc) · 552 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
s1="g fmnc wms bgblr rpylqjyrc gr zw fylb. rfyrq ufyr amknsrcpq ypc dmp. bmgle gr gl zw fylb gq glcddgagclr ylb rfyr'q ufw rfgq rcvr gq qm jmle. sqgle qrpgle.kyicrpylq() gq pcamkkclbcb. lmu ynnjw ml rfc spj."
s2="map"
defmaketrans(s):
s2=""
foriinrange(len(s)):
c=s[i]
ifnotc.isalnum():
o=ord(c)
elifc=='y'orc=='z':
o=ord(c) -26+2
else :
o=ord(c) +2
c2=chr(o)
s2+=c2
returns2
print(maketrans(s1))
print(maketrans(s2))