Answer:
Rows and cols of matrix1 : 5 6
Rows and cols of matrix1 : 4 4
We can't multiply these two as matrices.
Rows and cols of matrix1 : 3 8
Rows and cols of matrix1 : 8 6
We can multiply these two as matrices.
Explanation:
Note: Check attachment for the code. Also note that "page (1/3), page (2/3) and page (3/3)" are not part of the code, it is only for numbering the pages.
So, the aim in this question is to check if we can multiply the two lists given above as matrices. So, check below for what we are are going to input as the Python3 program which is in the attached file.
Therefore, when we write the Python3 program and run it we are going to get an output which will read as the following;
Rows and cols of matrix1 : 5 6
Rows and cols of matrix1 : 4 4
We can't multiply these two as matrices.
Rows and cols of matrix1 : 3 8
Rows and cols of matrix1 : 8 6