What would be the recommended way to divide every item in an enumerable, in this case a list, by every item at the corresponding index of another list. Would like to return a new list with the result.
list1 = [10,20,30,40]
list2 = [1,2,3,4]
new_list = [10, 10, 10, 10]
Have tried a few things with nested comprehensions and also with a Enum.map within an Enum.map but it got really convoluted… Anyone have any ideas???