Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def encrypt(s1):
- s2 = map(lambda c : chr(ord(c) + 2), s1)
- return ''.join(s2)
- def decrypt(s1):
- s2 = map(lambda c : chr(ord(c) - 2), s1)
- return ''.join(s2)
- s = "xtherussiansarecomingx"
- print(decrypt(encrypt(encrypt(s)))==encrypt(s))
Advertisement
Add Comment
Please, Sign In to add comment