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.
That's pythonic beauty in its purest form - well done!!
This comment is hidden because it contains spoiler information about the solution
Thanks for the note. I assume I did not think it all the way through.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Have you already tried your proposal? Because I just did, and I could not get it to work with sqrt(n).
Thanks for explaining!
I'm just wondering as I am scrolling trough one of my python books (which focus on best practice), but isn't this solution breaking the Python principal of "Sparse is better than dense?", because there are more then one Statement on each of those lines? And there are multiple exit points where my source tells me it's more Pythonic to keep the exit points to a minimal.
This comment is hidden because it contains spoiler information about the solution
There is no reason to reinvent the wheel. Thats one of the main aspects why python is such a strong programming language.
This comment is hidden because it contains spoiler information about the solution