-
Code def meaning_of_life_is(*args): return 40 + 2;
Test Cases import codewars_test as test from solution import meaning_of_life_is # or from solution import example .describe("Answer to the Ultimate Question of Life, the Universe, and Everything.") def test_group(): .it("life having is 42") def test_case(): test.assert_equals(meaning_of_life_is("hapiness", "fulfillment"), 42) .it("life wanting is also 42") def test_case(): test.assert_equals(meaning_of_life_is(None), 42)
Output:
-
Code def meaning_of_life_is(*args): return 42;- def meaning_of_life_is(*args): return 40 + 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 }}