Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

create an array with a range of elements

np.arange(4)

# And even an array that contains a range of evenly spaced intervals. To do this, you will specify the first number, last number, and the step size.
np.arange(2, 9, 2)
Source by numpy.org #
 
PREVIOUS NEXT
Tagged: #create #array #range #elements
ADD COMMENT
Topic
Name
6+1 =