fork(1) download
  1. alfa = {
  2. "A": ".-",
  3. "B": "-...",
  4. "B": "-.-.",
  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. "W": ".--",
  25. "X": "-..-",
  26. "Y": "-.--",
  27. "Z": "--.."
  28. }
  29. while True:
  30. try:
  31. tekst = input()
  32. for litera in tekst:
  33. if litera == ' ':
  34. print("/", end="")
  35. else:
  36. print(alfa[litera.upper()], end="/")
  37. print("")
  38. except EOFError:
  39. break
Success #stdin #stdout 0.02s 9176KB
stdin
Standard input is empty
stdout
Standard output is empty