Let's say I have 2 vectors [2, 4, 6, 8] and [1, 3, 5].
If I combine the numbers according to their indexes, I expect [3, 7, 11] as my result. If one vector has more indexes than the other, then it will be excluded in the calculation. (That's why 8 is not included here). My question is how do I combine 2 vectors while ignoring the extra 8 as shown above? I need a function.
def v_add(num1, num2):
total = num1 + num2
return total