NumPy Array Creation

In this lesson, array creation using NumPy is explained.

If you don’t know what an array is, please read this short article.

Creating an array

NumPy has the power to create multi-dimensional arrays beyond 2 dimensions, but for this course, we focus on 1-D and 2-D array creation.

1-D array

The following program creates a 1-D array:

Get hands-on with 1000+ tech skills courses.