np.unique Usage of () The function is to remove the repeated numbers in the array and sort them before output.