Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started