9951 explained code solutions for 126 technologies


python-numpyGenerate empty Numpy array


import numpy as np
arr = np.empty(5)ctrl + c
import numpy as np

load Numpy module for Python

.empty

generate empty Numpy array of the specified shape

(5)

sample shape to generate (1-dimensional array of 5 elements in our case)

arr

generated array