How to Import NumPy in Your Applications


In this example we will show how to import NumPy in your applications in Python.

Source Code

import numpy

n = numpy.array([1, 2, 3, 4])

print(n)

Output:

[1 2 3 4]
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments