Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- key = list(input())
- alph = sorted("qwertyuiopasdfghjklzxcvbnm")
- enc = dict()
- dec = dict()
- for i in range(len(key)):
- enc[key[i]] = alph[i]
- dec[alph[i]] = key[i]
- inp = input()
- print("".join([dec[c] if c in list("qwertyuiopasdfghjklzxcvbnm") else c for c in inp]))
- print("".join([enc[c] if c in list("qwertyuiopasdfghjklzxcvbnm") else c for c in inp]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement