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.
yes, very good point. but it only effects it if the comma is in the last person in the array.
the [::-1] mirror list.
eg:
'Bart, Lisa, Maggie, Homer & Marge' to
'egraM ,remoH ,eiggaM ,asiL ,traB'
then the .replace specify only to change one ',' to '&' one time.
'egraM & remoH ,eiggaM ,asiL ,traB'
then the last [::-1] mirror the whole list again.
'Bart, Lisa, Maggie, Homer & Marge'
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 == [["", ".", ""]]
.I have tried so hard and just couldn't identify where did I try to look for "". Would you please give me some hint?
Not an issue.
You're trying to find
""
inMORSE_CODE
while there's no such key in it.This comment is hidden because it contains spoiler information about the solution