Home / Python Numpy / How to Create a NumPy Ndarray Object Using a List In this example we will show how to create a NumPy ndarray object using a list in Python. Source Code import numpy as np n = np.array([1, 2, 3, 4]) print(n) print(type(n)) Output: [1 2 3 4]