Move History

Rooted by: lol
Fork Selected
  • Code
    solution=lambda a:a**a
    Test Cases
    import codewars_test as test
    # TODO Write tests
    # or from solution import example
    import codewars_test as test
    from solution import solution
    
    # test.assert_equals(actual, expected, [optional] message)
    @test.describe("Example")
    def test_group():
        @test.it("test case")
        def test_case():
            test.assert_equals(solution(3), 27)
    
  • Code
    • def solution(a):
    • return a ** a
    • solution=lambda a:a**a