Question
Use Python 1. Create an array of 10 zeros 2. Create an array of 10 ones 3. Create a 3x3 identity matrix Questions 4-12 use
Use Python
1. Create an array of 10 zeros
2. Create an array of 10 ones
3. Create a 3x3 identity matrix
Questions 4-12 use the following original array:
original_array = np.arange(1,26).reshape(5,5)
original_array
array([[ 1, 2, 3, 4, 5],
[ 6, 7, 8, 9, 10],
[11, 12, 13, 14, 15],
[16, 17, 18, 19, 20],
[21, 22, 23, 24, 25]])
4. Grab the following array from the original array
[[ 2, 3, 4],
[ 7, 8 ,9] ]
5. Grab the number 18 from the original array
6. Grab the 3rd column from the original array
7. Grab the 4th row from the original array
8. Grab the 1st and 3rd row from the original array
9. Get the maximum value from the original array
10. Get the sum of the 3rd column from the original array
11. Compute the sum of each row in the original array
12. Change all the values that are greater than 12 in the original array to 10
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