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].
Answer:
Answer is c) Verify the vga cable is connected
Explanation:
No video signal means that the projector is not receiving any data from the laptop. Verifying the cable connection should be the first test you should do.
If the cable is properly connected and the projector keeps showing that error then you can move on and perform additional tests, but the first requirement for establishing a connection is that the cable is properly connected.
they should have a fund raiser and collect money and then put up strong fire walls on all the computers
She would put more acres of crop b as it makes more money per acre which will give her a better investment
=if(c5≥h18,(c5),(k5))
we will use if function to check the validity of function
we will first write the condition and then we will write the value if condition goes true otherwise if condition does not go true we will write false and function will return value in k5 cell which we have provided in the formula.