Question: Enter sentence: 100 10 Traceback (most recent call last) KeyError ipython-input-7-abcaed21d46e> in modl(O 16 17 sentence = input (Enter sentence : ) > 18 encodedsentence


Enter sentence: 100 10 Traceback (most recent call last) KeyError ipython-input-7-abcaed21d46e> in modl(O 16 17 sentence = input ("Enter sentence : ") > 18 encodedsentence = convertToMorseCode(sentence) 19 print (encodedsentence) 20 Kipython-input-7-abcaed21d46e> in convertToMorsecode(code) 12 13 14 15 16 code=code, split("") for character in code: encodedSentence += morseCode-dict [character] " " + return encodedSentence KeyErro 100 10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
