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.
Example of the error (I'm sure there are other errors in my code) https://imgur.com/a/TXN9H
I do not attempt to give it an empty string, as far as I know. I guess I'll just work on it more...
I get
KeyError: ''
which supposedly means that the thing wasn't found in the dictionary. I'm accessing it usingMORSE_CODE[iterable_that_equals_a_morse_code_string]
and that is giving me the error.http://imgur.com/a/16Q9u
there's a screenshot. I have no idea where the zero is coming from. I can provide more screenshots/video if needed.
I was going to make such an amazing oneliner of builtins and functions to take the sum of a list of the appropriately generated odds for the given N... then I realised I could do it so much more easily :(
I believe I have working code but am having trouble accessing the morse code dictionary, and the errors are not enough to tell me what's going on. What should I do? (I'm in Python)
I understand the need for handling a zero... but what on earth is with the weird handling of 1 or 2 or 44? That's ridiculous. My Python script works otherwise.