Ad
  • Custom User Avatar

    Hey guys, I am having troubles in solving the "Decode The Morse Code, for real" problem in python. The internet is not much of help. I'm encountering this error repeatly.

    Traceback (most recent call last):
    File "/workspace/default/tests.py", line 11, in
    testAndPrint(decodeMorse(decodeBitsAdvanced('0000000011011010011100000110000001111110100111110011111100000000000111011111111011111011111000000101100011111100000111110011101100000100000')), 'HEY JUDE')
    File "/workspace/default/solution.py", line 58, in decodeMorse
    decoded_characters.append(MORSE_CODE[character])
    KeyError: '-.-.....-.....--..--.--...........-.-------.....-..--.....--.-.-....'

    Any help would be appreciated. Thanks

  • Custom User Avatar

    140% Clever 👨🏼‍💻