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.
Because duck-typing. Every number type is equal as long as they have the same numerical value.
This comment is hidden because it contains spoiler information about the solution
oh my world ,this is really pythonic
how so?
sorry to say but i don't think the best clever solution is really the best
although it is not the simplist ,but it very clear
i am curious why python can know 3==3.0 though they type is different ,so t/n acutally also work here
This comment is hidden because it contains spoiler information about the solution
Thanks, although it was rather meant to be a joke ;-)
is it possible that donot return else things just do the else
really short ,really pythonic
i am sorry,but is start from -2?
this is really really short
omg , it 's really hurt when i finally come to a possible but not elegant solution
Overall very poorly written question. I had to re-read everything over and over for complete comprehension. And for the final result to work with all test cases I needed to use round() instead of int(). This is a poor use of time. If something that insignificant is going to pass everything save for one test case, then the round outcome should be explicitly requested.
Loading more items...