Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
'-.-.....-.....--..--.--...........-.-------.....-..--.....--.-.-....'
seems too long for a key of that dictionary. And the error is saying it doesn't exist. Each key represents a letter or SOS, not a whole string.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
140% Clever 👨🏼💻