How many values in cups are at least 100

NumPy · from Boolean masks

a > na[mask]&|~.sum().any().all()np.count_nonzero

Putting the kettle on…

Starting up…

Exercise 2

How many values in cups are at least 100? Return the count.

your answer
stuck? the lesson behind it
Boolean masks
Selecting by condition — and why the answer comes back flat.