Question: Using idle 3.6 6. Open the file morse.json which contains letter-to-Morse code dictionary in JSON format. Read this dictionary from the file using dict load(file)
6. Open the file morse.json which contains letter-to-Morse code dictionary in JSON format. Read this dictionary from the file using dict load(file) function from the module json. Ask user for the string to translate. Use the dictionary to translate the characters into Morse code ant output the Morse code translation. For example Enter a word to translate: Hello Enter a word to translate: SOS
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
