Assignment 1
Change the last column of C to zeros.
Assignment 2
Change A to [11, 12, 13, 14, 15].
Assignment 3
First, obtain the elements [22, 23] from C. Then, obtain the elements [11, 21, 31, 41] from C. Finally, obtain the elements [21,31, 41, 0].
Assignment 4
Obtain the elements [[23, 24], [33, -34]] from C.
Assignment 5
Obtain the square in the center of the image.
Assignment 6
Obtain the following. [[12, 0], [42, 0]] [[12, 13, 14], [0, 0, 0]]
Assignment 7
1. Given the array, A = array([12, 15, 18, 21]), how do we access the element 18?
2. Given the array,
B = array([[10, 11, 12, 13],
[20, 21, 22, 23],
[30, 31, 32, 33],
[40, 41, 42, 43]])
Obtain the elements, [[21, 22], [31, 32]]
3. Given the array,
C = array([[10, 11, 12, 13],
[20, 21, 22, 23]])
Change the array to
C = array([[10, 11, 10, 11],
[20, 21, 20, 21]])