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.
In python you can return/yield only a single object, that can be a tuple of values. (If there is a comma it'a a tuple.)
The description should describe the task.
https://docs.codewars.com/authoring/guidelines/submission-tests
True if n > 0 else False
is an unnecessarily complicated version ofn > 0
.For consistency, if you wrap a bool expression, you should wrap all expressions:
True if n > 0 else False
->True if (True if n > 0 else False) else False
-> ...And why not
(1 if n == 1 else n) > 0
orTrue if (True if (0 if n == 0 else 1 if n == 1 else n) > 0 else False) else False
?describe
/it
blocks in both sample and full tests.from solution import isemail
in both sample and full tests.No sample tests.
Why not?
import
sFixed in last fork.
.
There should be tests with
n=0
andn=1
.Reference solution fails when
n
is a float with an integer value.Invalid inputs should be removed from description and sample tests.
Loading more items...