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.
str_final+=MORSE_CODE[j]
throws error becausej == ""
is not in dictionary. Where doesj
come from?for j in i
. Where doesi
come from?for i in letters
. How doesletters
array look when you call this function on" . "
?letters == [["", ".", ""]]
.Not an issue.
You're trying to find
""
inMORSE_CODE
while there's no such key in it.