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.
No, it means you don't have to do extra tests/checks before.
Like, it could have said:
if string is less than two characters, then return string
.simple and smart!
nice solution!
Too easy :) Should be ranked as 8kyu, I think.
Use the spoiler flag when you post solutions. In Python,
1
is both the boolean valueTrue
and the integer1
, so your distinction does not apply here.This comment is hidden because it contains spoiler information about the solution
I think description of task is quite incorrect.
Because determinant is Number, and function should be return number, not boolean.
No matter that it brings same result, but conceptually it's wrong to do so, I think.
there are no bad programs, there are bad tests. 🤓
Nice, but wait a second, please.
Description says: "You don't have to worry with strings with less than two characters."
I thought it means you should do nothing ("don't worry") with strings with less than two characters.