I want to apply some functions to certain elements in an array of arrays.
def func_1(num):
return num+1
def func_2(num):
return num+2
test_array = [ [10,1],[10,1],[11,2]]
I want to apply function func_1 to first element of each array and function func_2 to second element of each array.
The result array will look like this;
result_array = [ [11,3],[11,3],[12,4]]
I am using python 3.7