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.
Nice!Tried this but got some weird error when trying to sort ages. Definetely my fault, but nice to see it could be done!
TL;DR, it all depends on who you are writing the code for. Personally, I enjoyed it but wouldn't write it.
This feels like an age old argument between concise and readable code. To a complete beginner this would not be very useful or accessible. For me, knowing some JS and a week into learning Python, it is not readable but fun and interesting to dissect and understand, and it helps me to learn. Thank you. And I can easily understand that this becomes quite obvious with time.
Do you use list comprehension?
I didnt know sorted could be used on sets
sweet
Like mentioned before, you can use 'return' instead of 'if: ... else:'
Nope, for people who are kinda experienced it's pretty easy to write one-liners from scratch.
Ah, I was clever, but not clever enough.
This comment is hidden because it contains spoiler information about the solution
what does map do in this instance
oh mine!!! i had this intentionpainful
what the fuk
crispy one , bravo
Clever, but am I wrong thinking this isn't best practice? The built in function are fine to use, but it just seems like dividing it into more lines would make it more useful to anyone who ever has to look at it.
I'm assuming that's how it was made originally and then just put into one line for nice submission?
My solution was similar but without map..
Loading more items...