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.
Ah, I didn't see that - it's annoying that it's still unfixed after so long
I don't know how this can be wrong - it says it's expecting exactly what I'm returning!
Every comment you leave is visible from the home page, so if you post full solutions like this, please use the spoiler flag.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
The last line of the description
This comment is hidden because it contains spoiler information about the solution
The
suggestion
tag should be used for giving potential improvements to the kata itself, this is just a solutionYour solution returns the number passed in, so
add(1)
returns1
- if you then doadd(1)(2)
, you're trying to call the number1
as a function, which causes the error.Please use the spoiler tag when posting your code - all unspoilered comments are visible from the home page, so this will show up even if someone hadn't solved the kata.
Your code fails because it checks that the password contains either a number or a special character. Special characters are not mentioned in the kata decription, only a number needs to be present.
well, it's resistant to sudden power loss I guess
This version and an equivalent full function do the exact same thing; this is just compressing it into one line. There's literally no advantage and it violates PEP-8 but some people seem to think it looks cool.
Approved
Rust translation!
Loading more items...