import numpy as np # Create an array array = np.array([4,3,2,1]) # Print the array print("Array elements are : ",array) # Find the minimum value in the array min_value = np.min(array) # Find the maximum value in the array max_value = np.max(array) # Calculate the mean of the array mean = np.mean(array) # Print the minimum, maximum,mean and sort values print("The minimum value is:", min_value) print("The maximum value is:", max_value) print("The mean value is:", mean) #Broadcasting array = array + 10 print("Add 10 to each element in the array : ",array) array = array* 2 print("Multiply each element in the array by 2: ",array) #Sorting the elements of the array sort=np.sort(array) print("Sorted of array elements: ",sort)