Ad
  • Custom User Avatar
  • Custom User Avatar

    In the second example, the double-quotes are not part of the string itself. The only pair of characters used there are single quotes. In each of those examples in Python double quotes are used to mark the strings as part of Python syntax, they are not included in the string they define.

    So, for these two examples:

    Example 1: string to be checked is (Sensei [says] yes!); opening/closing characters are ()[]

    Example 2: string to be checked is Sensei says 'yes'!; opening/closing characters are ''

  • Default User Avatar

    I'm looking at your example for python and I see that the string (something[else]something) and ()[] is true. But in the next example the string "something 'else' something" and "''" is true. Shouldn't one of those be changed so their both either ([]) "''" or ()[] ""''?

  • Custom User Avatar
  • Custom User Avatar

    You can also follow them and have them follow you, and they are added to your list of Allies (without using clans).

  • Custom User Avatar

    This feature is already implemented in the current system by the way of Clans, I don't really know the process because I don't use this feature personally but from what I gather you go to Account Settings or https://www.codewars.com/users/edit and then you can type in a clan name, so everyone else with the same clan name will become your ally and you can see each others progress.

  • Default User Avatar

    Submitting my code in Haskell I got:

    Random Tests
    Falsifiable (after 13 tests):
    expected: False
    but got: True
    "foo banana textbook baz hola salut hola ahoj foo salut"

    I don't understand why "expected: False"

  • Custom User Avatar

    By the way, how cool is the czech repubblic hallo!!

    Typo on republic I believe

  • Custom User Avatar

    In the discussion below you can see that it has been discussed, there are no regex for beginners and I wanted to make some.

  • Default User Avatar

    If you really want to test people's regex knowledge, you should put words in the test cases that contain the greeting. Like "Lucy plays a chello" would return false. Just a thought.

  • Custom User Avatar

    done

  • Custom User Avatar

    Needs random test cases :)

  • Custom User Avatar

    That's how it was when I first did the kata but I thought I had fixed that when I edited the kata originally (Python version). I think that was my mistake.

    I edited it again now to show the example test cases. Hopefully they will show up for you now as well!

  • Default User Avatar

    I'm looking at the python version and I noticed the test list is blank, was this done on purpose?

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Loading more items...