Have fun doing this challenge. This is the first challenge out of 3. Stay tuned for the rest!
Here is The dictionary to use in the challenge:
-----------------------------------------------------------------------------
charToDots = {
'A': '.-', 'B': '-...', 'C': '-.-.', 'D': '-..', 'E': '.', 'F': '..-.',
'G': '--.', 'H': '....', 'I': '..', 'J': '.---', 'K': '-.-', 'L': '.-..',
'M': '--', 'N': '-.', 'O': '---', 'P': '.--.', 'Q': '--.-', 'R': '.-.',
'S': '...', 'T': '-', 'U': '..-', 'V': '...-', 'W': '.--', 'X': '-..-',
'Y': '-.--', 'Z': '--..', ' ': ' ', '0': '-----',
'1': '.----', '2': '..---', '3': '...--', '4': '....-', '5': '.....',
'6': '-....', '7': '--...', '8': '---..', '9': '----.',
'&': '.-...', "'": '.----.', '@': '.--.-.', ')': '-.--.-', '(': '-.--.',
':': '---...', ',': '--..--', '=': '-...-', '!': '-.-.--', '.': '.-.-.-',
'-': '-....-', '+': '.-.-.', '"': '.-..-.', '?': '..--..', '/': '-..-.'
}
-----------------------------------------------------------------------------
#Python
#Tutorial
#Algoritmi
#Programming
#ProgrammingChallenge
In questa pagina del sito puoi guardare il video online Encode Morse | Challenge 1 Python Tutorial #16 della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Arash T. Goodarzi (Algoritmi) 27 marzo 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 109 volte e gli è piaciuto 11 spettatori. Buona visione!