numpy.arrange()It creates an array by using the evenly spaced values over the given interval. The interval mentioned is half opened i.e. [Start, Stop]). SyntaxParametersIt accepts the following parameters.
ReturnAn array within the specified range is returned. Example 1Output: [0. 2. 4. 6. 8.] Example 2Output: The array over the given range is [10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95] Next Topicnumpy.asarray() |