Starting from:

$39.99

CS115 Lab 6- Two-dimensional lists, numpy, arrays Solution


1. Write a function, minMaxArray() that takes 2, two-dimensional lists, list1 and list2 as parameters. The function should compare each element in the lists, and place the smaller of each element in the first list (list1), and the larger in the second(list2). If the two elements are the same, both arrays should contain 0 for the given element.

Write a script to test your function. See the sample run below.

Sample run:

Before Calling Function:
[[8, 3, 5], [4, 6, 2], [11, 12, 20]]
[[7, 2, 6], [5, 6, 30], [1, 15, 24]]
After calling function:
[[7, 2, 5], [4, 0, 2], [1, 12, 20]]
[[8, 3, 6], [5, 0, 30], [11, 15, 24]]
2. Download the file, Lab06AQ2.pdf, and create a Jupyter Notebook file that has the appearance and functionality of the given pdf.
3. Download the file, Lab06AQ3.ipynb, and complete the question given in the notebook.


More products