Question: please help me stack variable a and b! python, and can you also exercise 5 as well. please and thank you! Exercise 4 Create a
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: (1 0 0 1 1 1 1 (1 0 1 0 1 1 1 1 1 0 0 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
