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.
crazy
Yes, you are right. I am still adapting to the Python language and trying to learn these little tricks that are not usually mentioned in the lessons.
And thank you for your observation
Note that it is true in Python - or C because Python engine is built in C - due to type coercion:
In these languages a boolean is a integer subtype.
It is not true in all languages : JS for example has a distinct type for boolean.
very nice
Well I get it, true is equal to one, and false is equal to zero and this is in order to reach the solution array ,Thanks I learned something new
Can someone explain this last line, I still can't understand it
wow!
Nice
This is clever, but not very interesting actually :\
nice pep8)
would this not be considered best practice since your actually multiplying out the numbers. Seems like it could be fairly inefficient no?
Man, my one liner isn't even close to this - and that e=enumerate trick is only saving you four characters; this is unreasonably clever code golfing.
You are welcome :-D
In Python you can assign another alias to a function, even private function
ngl ive been using this solution as a base for so many other katas and its helped a lot man
Loading more items...