Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def encode_to_morse(text):
- word = text.upper() # Приводит к верхнему регистру
- word1 = MorseCode(word)
- word2 = ''
- for i in len(word1):
- word1[i]
- word2 = word2 + word1[i] + ' ' * 4
- print(word2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement