Increment Parameter by Parameter

Modify your previous function so now it accepts two parameters... the number to increment (in the first position) and the value that will be used to increment that number (second position).

You have to write the function from scratch and name it increment_by.


increment_by(1, 4)  # 5
increment_by(2, 8)  # 10

Test Cases

test increment two by seven - Run Test

def test_increment_two_by_seven():
    assert increment_by(2, 7)  == 9

test increment five by three - Run Test

def test_increment_five_by_three():
    assert increment_by(5, 3)  == 8