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.
This comment is hidden because it contains spoiler information about the solution
FYI: using
xyz is 0
only works due to implementation details of CPython, which uses the same object in memory for each number 0 to 256. If a number beyond 256 is calculated, a new Python int object is created for itThis comment is hidden because it contains spoiler information about the solution
wat
Fine, I'll give you a clever uptick.
But it was fun!
Just because you can solve this problem in one line doesn't mean that you should.