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.
Ahhhh, there's always someone who have done the kata with one-liner solutions while I spent 30 minutes...hard to be a newbie in coding
After doing so many Python Kata and learning from one-liner solutions, I'm happy that I can now have one-liner solutions equivalent to these :D
Thats just amazing
Lmao🤣🤣🤣🤣🤣
there is always the one mf who likes to mog my answers which i spengt my whole day doing with just one line!!!
I agree most of the time but this is an odd solution to post this on. This is probably as readable and concise as a solution could ever be.
good answer with readable solution.
OMG, i'm very stupid
The comma operator makes age,handicap a tuple to Python. The parenthesis make it a tuple to everyone else.
Close to mine but I totally forgot about tuple unpacking ...
because output is list
Just like msc3000 said. With more detail; kata itself asks for an array result containing class of each member (data), so in each iteration evaluated adds into the returning array 'Senior' or 'Open' depending on de result of that evaluation. Hope it helps despite my horrible english.
Is there a reason for writing it in square brackets ?
The highest rated and most clever really don't seem to be best practice. They are always harder to read.
Lines of code are cheap.
This comment is hidden because it contains spoiler information about the solution
Loading more items...