← Quiz: NumPy: all 10 questions
Quiz: NumPy · Question 3 of 10
What does arr[arr 50] do?
What does arr[arr > 50] do?
- A.Sets every element above 50 to True
- B.Returns only the elements greater than 50
- C.Deletes elements above 50
- D.Counts elements above 50
Answer & explanation
Correct answer: Returns only the elements greater than 50
The boolean mask selects matching elements.
Can you get the rest right without peeking?
Take the timed Quiz: NumPy quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →