How can I make a recursive function that returns a list of sum of the same index given two lists.?
I want to make it a recursive function only.
for example:
list1 = [1,2,3]
list2 = [2,4,6]
a recursive function will return a new list [3,6,9]
The language should also be python.
Thank you. I just having a hard time figuring it out.