Squeeze scores into the range 50 to 85

NumPy · from where, select and clip

np.wherenp.selectnp.clipnp.nonzeroa[mask] = xnp.putmask

Putting the kettle on…

Starting up…

Exercise 2

Squeeze scores into the range 50 to 85.

your answer
stuck? the lesson behind it
where, select and clip
An if-statement over a whole array, without losing its shape.