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.
It's been a while so you've probably learned this, but you can change the tests.
You need to check the length of the output string, not the input string, this will fail on valid inputs with sufficiently large whitespace.
list
is a python keyword, so change it tolst
orl
or something similar that isn't a python keyword or module.It's alloways great to make more katas for this platform, but I feel like this idea has been done hundereds of times over. Maybe try adding your own little spin and some random tests.
There weren't tests like that?! I just wasted time then.
I honestly expected the test cases to be better with some of the values being
"[", "'Hidden'", "'", ",", " "
etc.Seems good now
Can't find it now
Ok, now it's 100% fixed. The problem was that the numbers generated were completely random insted of being from the charaters list used for the other tests. All ASCII codes should now translate to a charater in string.ascii_letters, string.punctuation, or be a space.
I don't see any changes:
Definitely not ascii... based on the description the input should look like "067070075099...`
Could you link the duplicate?
Fixed, just found out that some characters in string.punctuation in Python were registered incorrectly like '\x04' (End Of Transmission). All string lengths should be divisible by 3 now.
Fixed, some charaters used were registered incorrectly like '\x04' (End Of Transmission).
Seems to be a good start, although it would need some polishing (e.g. better tests). That is, if it was not a duplicate...
Random tests seem pretty broken, e.g.:
Loading more items...