NumPy program to create an array with the values.

In this python numpy program, we will create an array with the values.

Steps to solve the program
  1. Import the numpy library as np.
  2. Create an array with the given values using np.array().
  3. Print the output.
				
					import numpy as np
x = np.array([10,34,86,26,56])

print(x)
				
			

Output :

				
					[10 34 86 26 56]
				
			

create an element-wise comparison (less than).

determine the size of the memory occupied by the above array.

Leave a Comment