-
Code def above_two(n): return n > 2
Test Cases import codewars_test as test # TODO Write tests import solution # or from solution import example # test.assert_equals(actual, expected, [optional] message) .describe("Example") def test_group(): .it("test case") def test_case(): test.assert_equals(above_two(0), False) test.assert_equals(above_two(1), False) test.assert_equals(above_two(2), False) test.assert_equals(above_two(3), True) test.assert_equals(above_two(4), True) test.assert_equals(above_two(5), True)
Output:
-
Code above_two = lambda number: number > 2- def above_two(n):
- return n > 2
- All
- {{group.name}} ({{group.count}})
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}