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, but description is shared amongst all languages and making a code block only for Python is not needed here, you can see false and False are booleans, and a string would have quotes around it. You can also check the sample tests when in doubt.
I enjoyed this one, thank you. One small issue is that on the Python version, False is written as false with a lowercase f in the description. At first I was a bit confused, thinking maybe the tests were expecting us to return a string saying "false" if there was a problem with generating the hashtag. In other words True and False are capitalized in Python.
Just a small quibble
There is no error in the sample tests, you probably modified them without noticing. You can press
RESET
to reset the trainer to the initial state.There is an error with the sample cases, it was written as "assert.strictEqual(generateHashtag("code" + " ".repeat(1function generateHashtag (str) {" but should be "assert.strictEqual(generateHashtag("code" + " ".repeat(1))function generateHashtag (str) {". This causes an error with the syntax.