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