Home / Expert Answers / Computer Science / python-but-no-numpy-or-sum-38-write-a-function-that-has-two-lists-of-numbers-of-length-x-the-fu-pa903

(Solved): Python but no numpy or sum. 38. Write a function that has two lists of numbers of length x, The fu ...



Python but no numpy or sum.

38. Write a function that has two lists of numbers of length x,
The function will return a new list which is the element wise

38. Write a function that has two lists of numbers of length x, The function will return a new list which is the element wise addition of the two lists. Fif the lists are not the same length, then use a statement to display an error. Write the same for substraction, division, multiplixcation and powers. Display a message when divide by o 39 Write a function called that returns the product of all elements in a list


We have an Answer from Expert

View Expert Answer

Expert Answer


PYTHON Code: def addition(list1, list2): """ Function Name: addition(list1, list2) :param list1: A list of numbers :param list2: A list of numbers :return None: If two lists are of different length list3: A new list of
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe