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.
I think my solution is a bit more readable, but nice to know i had the same idea!
Somehow this is the only readable solution
This comment is hidden because it contains spoiler information about the solution
nice to know I didn't fry my brain to see a 1 liner...
This comment is hidden because it contains spoiler information about the solution
Less lines is not equal best practise.
Python in expecially has a best practise for readability!
PEP 8
Limit all lines to a maximum of 79 characters.
Which basically means: The closer you get to the 79 the less is it best practise.
Just because you could does not mean you should
Hello Adrian,
It was not my intention to critisize the code so please do not take it personally. There are multiple returns and operations that could have been expressed in less lines.
Being level 4 yourself, aren't you suprised that 40 people consider that coding as "best practices"?
I like how people can criticism but they can't even write what are the problems and help others to grow. Yes this is a bad solution and i made it on the beggining of my journey of programming but this comment can't help others to learn. If you can't help then just do your own thing my friend. There are some people who could write a nice description what can be improved on some other solutions and i think this is how it should work.
I am surprised this has 40 votes for best practices
This comment is hidden because it contains spoiler information about the solution
Many lines are unnessecery.
what the hell
I always consider this, but because kata doesn't depend on optimal solutions. I tried to make it one-linear :)
This comment is hidden because it contains spoiler information about the solution