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.
short and sweet!
For future reference, when posting a solution in a comment like that, mark your post as having spoiler content. Your post was visible in the homepage discourse. I've marked it for you this time.
This comment is hidden because it contains spoiler information about the solution
Just do it in one line...
У меня длинее (
L
Hi,
except that's not logical. You're basically building a test that is saying that one is two. => doesn't make sense. Especially because every regular CW user reading "make it a oneliner" will actually use one single line.
Your kata has been retired (automatic, based on the votes). If you're interested in authoring other kata, you should read the documentation about it before your next try.
https://docs.codewars.com/authoring/kata
Cheers
The test doesn't count the signature as a line and expects the signature, which I think is fair.
This error was from trying to use a lambda which was literally one line. Meanwhile, what the code expects is a standard
def
function with two lines. It won't work itself if it's set into one line. So, the code is really expecting a two-liner.boring and predictable solution: downvote
tfu na teba pendos
The fix you used in your solution is horrible, please avoid overwriting
False
like that (also, it won't work in 3.x).remove
is mistakingFalse
for0
becauseFalse == 0 #True
.This comment is hidden because it contains spoiler information about the solution