Last answered:

14 Nov 2022

Posted on:

29 Apr 2022

0

np.arange does not work as described

np.arange(start = 5) does not work, np.arange works only if you specify stop, or by giving only one input which is implicitly considered stop.

1 answers ( 0 marked as helpful)
Posted on:

14 Nov 2022

0

Syntax : arange([start,] stop[, step,], dtype=None, *, like=None)
In above syntax start,step are optional according to help documentation.
Required arguments is stop.
If we provide only one value while calling the function the value is assigned to stop.
If we provide value as keyword, then compulsory we need to provide value for stop also as keyword argument.

Submit an answer