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've concluded 5 kyu challenges that felt like 8 kyu compared to this one. Great kata nonetheless.
Yeah, I gotta admit I could barely understand this code (still puzzles me to this day). At first I thought it was because of my inexperience, but it's relieving to know that this is in fact hard to read and that I don't necessarily need one-liners to write good code. Thanks, man!
Don't be discouraged! These one-liner solutions get upvoted because they show off a lot of cool stuff Python can do, but it's a terrible way to code (unless you're practicing and want to get intimately familiar with every neat trick).
Coding is about documenting logical steps that are human-readable, hopefully with comments that provide more context for the programmers maintaining it. If these were instructions for a Lego set, this would be the equivalent of "Step 1: put all the Legos together."
This comment is hidden because it contains spoiler information about the solution
It took me 2 days and 9 lines of code just to find out that someone made it in a single line. Inspiring and discouraging at the same time, lol. Congrats, dude. That's insane.