Use np.linspace for five evenly spaced values from 0 to 1, including both ends

NumPy · from Making arrays

np.zerosnp.onesnp.fullnp.arangenp.linspacenp.eyedefault_rng

Putting the kettle on…

Starting up…

Exercise 3

Use np.linspace for five evenly spaced values from 0 to 1, including both ends.

your answer
stuck? the lesson behind it
Making arrays
zeros, ones, arange, linspace, eye, random — pick a shape, then a filling rule.