Question: PYTHON PROGRAM Write a program that creates the following numpy arrays and assigns them to variables from a 1 - ab: 1. 1-D (rank 1)
PYTHON PROGRAM

Write a program that creates the following numpy arrays and assigns them to variables from a 1 - ab: 1. 1-D (rank 1) row array (vector) with 4 int elements that equal o 2. 1-D column array with 4 float elements that equal 1. Set the 3rd element equal to 1.5. 3. 2-D (rank 2) array with 3 rows and 5 columns filled with floats that equal O. Set the 4th element of the 2nd row equal to e (Euler's number). 4.3-D (rank 3) array with 4 rows, 2 columns, and a 3rd rank (depth) input from the console, filled with integers that equal 1. TT 5. 1-D array with elements equally spaced from 0 to 27 (inclusive) in steps of 6. Create a 2-D array with the following values (with one statement): 7.09 2.43 5.43 8.3 2.48 6.98 9.72 0.99 Hint: don't forget to import all the modules you'll need
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
