You are on page 1of 2

Experiment No.

Aim: Write a program to multiply two matrices.


Objective:
● To find the multiplication of matrices..
Outcome: Students will be able to multiply matrices.
Algorithm\Implementation Steps\Installation Steps:
Step 1: Define two matrices X and Y
Step 2: Create a resultant matrix named ‘result’
Step 3: for i in range(len(X)):
i. for j in range(len(Y[0])):
a) for k in range(len(Y))
b) result[i][j] += X[i][k] * Y[k][j]
Step 4: for r in result, print the value of r
Source Code:
Input and Output:

Conclusion: Thus, the Python program to multiply matrices is executed successfully and
theoutput is verified.

You might also like