Question: Q14. Write a Python codes using NumPy that: A) Form the 2-D array (4 x 5), starting from 1 to 20 (without typing it in

 Q14. Write a Python codes using NumPy that: A) Form the

Q14. Write a Python codes using NumPy that: A) Form the 2-D array (4 x 5), starting from 1 to 20 (without typing it in explicitly), and generate a new array containing its 2nd and 4th rows. B) Create an array of the first 10 odd integer. Then convert it to 2D array with 2 TOWS. C) Create a 4x3 array and compute: the sum of all the entries, the sum of the rows and the sum of the columns. D) Write a Python program to normalize a 3x3 random matrix Original Array: [[ 0.89372503 0.99865458 0.77120044] [ 0.67632984 0.99990084 0.64110391] [0.34845794 0.66557903 0.29031742]] After normalization: [[ 0.85036881 0.99824367 0.67769765] [ 0.54399864 1. 0.49435553] [ 0.08193614 0.52884777 0.]] E) Create a 2d array with 1 on the border and 0 inside

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!