Import numpy as np
Declare a variable array1 as an empty list.
Declare a variable array2 as an empty list.
Get input value as n
Iterate a variable i in range n by for loop and append the values to the list array1 End the loop
Iterate a vairalbe j in range of n by for loop and append the values to the list array2 End the loop
Declare a variable prodcut to array and compute array1*array2
Print the the value of the product
import numpy as np
m1,m2 =[],[]
n = int(input())
for i in range(n):
m1.append(int (input()))
for i in range(n):
m2.append(int (input()))
value1=np.array(m1)
value2= np.array(m2)
result = value1*value2
print("Product of two arrays is:", result)
Hence the numpy module is imported and the programme is succefuuly executed to find the product of two matrices.