<em>A.)</em>
<em>It's either A or D both of them stand out and make sense to me so I think that it'll be right if you choose A or D.</em>
<em>-Ɽ3₮Ɽ0 Ⱬ3Ɽ0</em>
If you delete selected cells using the Delete key on your keyboard, only the _______ of the cells is removed.
Content
Answer:
- def process(lst1, lst2):
- newList = []
- for i in range(0, len(lst1)):
- sum = lst1[i] + lst2[i]
- newList.append(sum)
- return newList
-
- list1 = [1, 3, 5, 7, 9]
- list2 = [2, 4, 6, 8, 10]
- print(process(list1, list2))
Explanation:
Firstly, create a function process that takes two input lists (Line 1). In the function, create a new list (Line 2). Use a for loop to traverse through the elements of the two lists and total up the corresponding elements and add the sum to the new list (Line 3 - 5). At last, return the new list (Line 6).
In the main program, create two sample list and use them as arguments to test the function process (Line 8 - 9). We shall get the output [3, 7, 11, 15, 19].