To write a program that find product of two array using python.
Import Numpy as np.
Get input from the user.
Create empty lists l1 and l2.
Use for loop to append the values into the list created.
Print the product of two arrays.
import numpy as np
l1,l2=[],[]
n=int(input())
for i in range(n):
l1.append(int(input()))
for i in range(n):
l2.append(int(input()))
array_1=np.array(l1)
array_2=np.array(l2)
product=array_1*array_2
print("Product of two arrays is:",product)
Thus the program to find the product of two arrays using numpy has been verfied successfuly using python programming.