Question: 1. Using NumPy function and arithmetic operations only, create a NumPy array of 10 eights. Your code should return this: array([ 8., 8., 8., 8.,
1. Using NumPy function and arithmetic operations only, create a NumPy array of 10 eights. Your code should return this:
array([ 8., 8., 8., 8., 8., 8., 8., 8., 8., 8.])
2. Using NumPy function only, create an array of all even integers from 20 to 30. Your code should return this:
array([20, 22, 24, 26, 28, 30])
3. Using NumPy functions only, create a 4x4 matrix with values ranging from 0 to 15. Your code should return this:
array([[0, 1, 2, 3], [4, 5, 6, 7], [8, 9, 10, 11], [12, 13, 14, 15]])
4. Use NumPy functions only, create an array of 10 random numbers in standard normal distribution.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
