In this python numpy program, we will create a one-dimensional array using NumPy.
Steps to solve the program
- Import the numpy library as np.
- Create a one-dimensional array using np.array().
- Print the output.
import numpy as np
x = np.array([65,90,1,3,5])
print(x)
Output :
[65 90 1 3 5]