Solution 1

def my_function(a, b):
    return a * b

Guess the pattern

Use the test to guess the pattern used by the function and implement it using Python.

Test Cases

test your function - Run Test

def test_your_function():
    assert my_function(2, 3) == 6
    assert my_function(4, 3) == 12
    assert my_function(5, 5) == 25
def my_function(a, b): pass