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.
The difficulty is in that you need to write a regex, not a function.
This comment is hidden because it contains spoiler information about the solution
A few hints:
Always state the language in which you found the problem.
Fixed for Python.
should be, but the only way to pass the tests is to implement an iterative algorithm, this kata should not be 6kyu
it's not a variable, it's a function you have to call ;) (look at the example tests)
Yes, as stated here:
'))))' should equal '))(('
means your function returned'))))'
when it should return'))(('
. The first one isn't the input value, print it to see what it is.