To write a python program for Multiplying two matrices.
Start python program.
Import numpy.create two null lists.
Get two matrices from the user using append.
Multiply the two matrices.
Display the result.
#Developed by: Jegathish s
#Register number: 212221230041
import numpy as np
mat=int(input())
l1,l2=[],[]
for i in range(mat):
l1.append(int(input()))
for i in range(mat):
l2.append(int(input()))
A=np.array(l1)
A2=np.array(l2)
arr=A*A2
print("Product of two arrays is:",arr)
Thus the multiplication of matrix is done