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