Question: please help with exercise 4 and 5 this is for Python 3.7 Exercise 4 Create a 3 x 3 matrix with the value 1 in
Exercise 4 Create a 3 x 3 matrix with the value 1 in the main diagonal and call it A . Then create a 5 x 3 matrix filled with the value 1 and call it B. Then create a third matrix C that stacks the two earlier matrices on top of each other so that the result looks like this: (100) 0 1 0 0 0 1 1 1 1 | 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Exercise 5 1. Use the matrix from Exercise 4 and run a loop that extracts all the elements from the second column and prints them one by one. 2. Use the matrix from Exercise 4 and run a loop that extracts all the elements from the third row and prints them one by one
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
