from math import prod result = prod((5, 10)) print(result)
- from math import prod
def multiply(a, b):ints = (a, b)return prod(ints)result = multiply(5, 10)- result = prod((5, 10))
- print(result)
import codewars_test as test # test.assert_equals(actual, expected, [optional] message) @test.describe("Example") def test_group(): @test.it("test case") def some(): test.assert_equals(prod((2, 4)), 8) from operator import mul as multiply
- import codewars_test as test
# TODO Write testsfrom solution import multiply- # test.assert_equals(actual, expected, [optional] message)
- @test.describe("Example")
- def test_group():
- @test.it("test case")
def test_case():test.assert_equals(multiply(2, 4), 8)- def some():
- test.assert_equals(prod((2, 4)), 8)
- from operator import mul as multiply