I design a morse code converter using python which is nothing but represent alphabet or code in combinations of sound signals or light
First, we take the input as a string which converts the input into morse code. Using the encrypt() function which converts the given word or string into morse code and stores it into the variable called the result then printing the result. And we pass the converted morse code to decrypt() which then converts the given morse code to default word or string. First, we store the morse code into the dictionary as key-value pairs as A=>morsecode and then we use that to convert string to morse code vice versa.