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) == 5
    assert my_function(1, 9) == 10
    assert my_function(-1, 4) == 3

Solution 1

def my_function(a, b):
    return a + b
def my_function(a, b): pass