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.
Kevva is RIGHT
vlasec is RIGHT
Wow, so many 1 kyu code warriors defending a dead horse here. Yet the tests are inconsistent with the description.
If the polling rate is 100 ms and the operator takes 110 - 170 ms per dot or short break, how can a 200 ms break be considered a long break (dividing letters) if it should be 3 dots long (which would be 330 - 510 ms]? Yet somehow, "1001" should be translated as ". ." as per tests, thus resulting into "EE" where "I" would be more consistent with the tests.
Yes, you can come up with a solution that passes the tests without hacking any leftovers, but it doesn't solve Morse code. It solves some mathematical problem that is carefully hidden out of the description so that people with at least Bc. of theoretical mathematics can figure it out.
should be good now. Reset the trainer and try again
The tests are passing the 'base'-list as a reference to your function, which means that the 'base'-list will be modified if your function doesn't copy it before usage.
Thats the point
Testing in Python 3.8 gives "NameError: name 'Test' is not defined" whereas Python 3.6 works fine
Not a kata issue.
But... this is what the kata is about? It's your task to determine how long are sequences for a dash, dot, short gap and long gap.
This kata might have some issues, but the part you are complaining about is not one - it's the whole point of the kata.
The tests are trash and are not consistent at all. For example, 101 is "I", 1001 is "EE", 100001 is "EE", and then all of a sudden 10000001 is "E E"...