Move History

Rooted by: meaning of life
Fork Selected
  • 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
    
    @test.describe("Answer to the Ultimate Question of Life, the Universe, and Everything.")
    def test_group():
        @test.it("life having is 42")
        def test_case():
            test.assert_equals(meaning_of_life_is("hapiness", "fulfillment"), 42)
        @test.it("life wanting is also 42")
        def test_case():
            test.assert_equals(meaning_of_life_is(None), 42)
    
  • Code
    • def meaning_of_life_is(*args): return 42;
    • def meaning_of_life_is(*args): return 40 + 2;