Advertisement
Guest User

Untitled

a guest
Nov 29th, 2014
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. original_text = input()
  2. encrypted_text = input()
  3.  
  4. crypt_dict = {}
  5. encrypt_dict = {}
  6.  
  7. for i in range(len(original_text)):
  8. crypt_dict[original_text[i]] = encrypted_text[i]
  9. encrypt_dict[encrypted_text[i]] = original_text[i]
  10.  
  11. original_text = input()
  12. encrypted_text = input()
  13.  
  14. print(map(lambda x: crypt_dict[x], original_text))
  15. print(map(lambda x: encrypt_dict[x], encrypted_text))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement