Question: Q1. Create two 2D arrays with size 4x4 using two methods: 1) Use np.zeros(m,n); then replace elements of the array. Make each array value equal

Q1. Create two 2D arrays with size 4x4 using two methods: 1) Use np.zeros(m,n); then replace elements of the array. Make each array value equal to the sum of its row and column position. 2) Use np.random.randint(low,high,size m,n). Create an array of random integers with values between -10 and 10. aii a12 a13 a14 21 422 023 4d24 31 a3,2 a33 a3,4 41 a42 443 444 A= Once the arrays are created Print the locations and value for each element Print the matrix and its size using print(np.matrix (A)) and print(A.shape) The results may look like this Matrix A with a size of (3,3) C[13 6 17] C14 14 5] [14 8 15] In C1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
