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

please help with exercise 4 and 5 this is for Python 3.7 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 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!