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.
Lots of good variations for this simple question. But for my money, this is the easiest to read.
Exactly like my solution.
Never used python2
Thanks !
Because this is Python 2.
In Python 3 you should use next(filter(...)) instead of filter(...)[0] and list(filter(...)) in order to return a list, not a filter object.
Pls why copying your exact code to understand it gives this result :
(beginning erased)
'filter' object is not subscriptable
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
One of the reasons school is good
This is the correct "best practices" solution.
Awww man!
I really like this solution because it doesn't use the math module and it still remains simple.
@pumacens, ffs, how many times have you been told already that you are NOT ALLOWED to publicly post any comments which might spoil the kata solution?!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution