numpy arange number of elements

Solutions on MaxInterview for numpy arange number of elements by the best coders in the world

showing results for - "numpy arange number of elements"
Amin
02 Apr 2017
1>>> import numpy as np
2>>> np.linspace(start=0, stop=7.5, num=4)
3array([ 0. ,  2.5,  5. ,  7.5])
4>>> list(_)
5[0.0, 2.5, 5.0, 7.5]
6