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
.
Examples:
increment_by(1, 4) # 5
increment_by(2, 8) # 10
Solution 1
def increment_by(param, inc):
return param + inc