Learn practical skills, build real-world projects, and advance your career

NumPy is a python library used for working with arrays.

installation of NumPy if we have python and pip already installed on a system, then:

Install it using this command:

C:\Users\Your Name>pip install numpy

Import NumPy Once NumPy is installed, import it in your applications by adding the import keyword:

import numpy as np
# Now numpy is imported and ready to use.
arr = np.array([1,2,3,4,5])
print(arr)
[1 2 3 4 5]