0
Q:

Display the square of each element in the array in numpy

# Python program explaining 
# square () function 
  
import numpy as np 
  
arr1 = [1, -3, 15, -466] 
print ("Square Value of arr1 : \n", np.square(arr1)) 
  
arr2 = [23 ,-56] 
print ("\nSquare Value of arr2 : ", np.square(arr2)) 
0

New to Communities?

Join the community