Use np.arange to make [10, 20, 30, 40, 50]

NumPy · from Making arrays

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

Putting the kettle on…

Starting up…

Exercise 2

Use np.arange to make [10, 20, 30, 40, 50].

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