1) Provide python code that create a Nd array like below: (10 points)
1 1 1 1 1
1 0 0 0 1
1 0 9 0 1
1 0 0 0 1
1 1 1 1 1
2) Find the index of all zeros and print them out (5 points)
3) Find the maximum value of the array (5 points)
The result:
Question 4
[[1. 1. 1. 1. 1.]
[1. 0. 0. 0. 1.]
[1. 0. 9. 0. 1.]
[1. 0. 0. 0. 1.]
[1. 1. 1. 1. 1.]]
(array([1, 1, 1, 2, 2, 3, 3, 3], dtype=int64), array([1, 2, 3, 1, 3, 1, 2, 3], dtype=int64))
the maximum is [9.]