# Finding the k smallest values of a NumPy array in Python # importing the modulesimport numpy as np  # creating the array arr = np.array([23, 12, 1, 3, 4, 5, 6])print("The Original Array Content")print(arr)  # value of kk = 4  # sorting the arrayarr1 = np.sort(arr)  # k smallest number of arrayprint(k, "smallest elements of the array")print(arr1[:k])