Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2020
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. def encode_to_morse(text):
  2.     word = text.upper()     # Приводит к верхнему регистру
  3.     word1 = MorseCode(word)
  4.     word2 = ''
  5.     for i in len(word1):
  6.         word1[i]
  7.         word2 = word2 + word1[i] + ' ' * 4
  8.  
  9.  
  10. print(word2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement