Ad
  • Custom User Avatar

    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.

  • Custom User Avatar

    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

  • Custom User Avatar

    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.

  • Custom User Avatar

    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.