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
loved this solution I'll keep it my code comments
Probably the tests test that the return value matches the expected value using
==operator, and then(0==False) is Trueand(1==True) is True(I haven't written any test cases in Codewars, nor did I check how they're implemented, so that's why I'm saying probably).boolis a subclass ofint(i.e.issubclass(bool, int) is True), here's how boolean values and 0/1 integer values (and an arbitrary other integer value 2 for comparison) compare using==andisoperators:The comparisons above can be verified by running them in Python shell for example.
For more details check out PEP 285 – Adding a bool type
goat
That's what the function is for
he decided to follow the path of the ninja
Your solution must cover all possibilities, and the following method is not programmatically correct. It's better to use a switch case and better define the values.
From the description:
The code complies with the task requirements, where 1-12 is the domain exclusively.
That's a logically flawed method. Haven't you wondered what would happen if someone entered a month greater than 12 ?
They'd definitely cry when they saw the result.
Wow! Another brillant one-liner!
I have a vague memory of doing his 30 years ago, but I would have to had to googled it.
smart
LSB检测 高中知识
In Gauss we trust.

very good
Loading more items...