square each term in array numpy code example Example: how to square each term of numpy array python np.square(arr1)