Guest User

Untitled

a guest
Sep 20th, 2019
93
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. dictionaryNormal = {
  2. 'a': 'å',
  3. 'b': '∫',
  4. 'c': 'ç',
  5. 'd': '∂',
  6. 'e': '´',
  7. 'f': 'ƒ',
  8. 'g': '©',
  9. 'h': '˙',
  10. 'i': 'ˆ',
  11. 'j': '∆',
  12. 'k': '˚',
  13. 'l': '¬',
  14. 'm': 'µ',
  15. 'n': '˜',
  16. 'o': 'ø',
  17. 'p': 'π',
  18. 'q': 'œ',
  19. 'r': '®',
  20. 's': 'ß',
  21. 't': '†',
  22. 'u': '¨',
  23. 'v': '√',
  24. 'x': 'x',
  25. 'y': '\'\'',
  26. 'z': 'Ω',
  27. ' ': ' '
  28. }
  29.  
  30. dictionarySymbol = {
  31. 'å': 'a',
  32. '∫': 'b',
  33. 'ç': 'c',
  34. '∂': 'd',
  35. '´': 'e',
  36. 'ƒ': 'f',
  37. '©': 'g',
  38. '˙': 'h',
  39. 'ˆ': 'i',
  40. '∆': 'j',
  41. '˚': 'k',
  42. '¬': 'l',
  43. 'µ': 'm',
  44. '˜': 'n',
  45. 'ø': 'o',
  46. 'π': 'p',
  47. 'œ': 'q',
  48. '®': 'r',
  49. 'ß': 's',
  50. '†': 't',
  51. '¨': 'u',
  52. '√': 'v',
  53. 'x': 'x',
  54. '\'\'': 'y',
  55. 'Ω': 'z',
  56. ' ': ' '
  57. }
  58.  
  59. def translate():
  60. secret_phrase = input('enter text to translate: ')
  61. translation = [dictionarySymbol[c] for c in secret_phrase]
  62. print("".join(translation))
  63.  
  64. if __name__ == "__main__":
  65. translate()
RAW Paste Data