Third Quartile
Return the 75th percentile of scores as a float, using the same method as np.percentile(scores, 75) (when the position falls between two sorted values, it blends them in proportion).
Example 1
scores [1,2,3,4,5]
returns 4.0
The sorted position 0.75 * 4 = 3 is exactly the value 4.
Constraints
1 <= len(scores) <= 100
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More NumPy problems
- Votes TallyBeginner
- Add Column OffsetsEasy
- Age GroupsEasy
- All DifferentEasy
- Average of Chosen RowsEasy
- Average of Top ThreeEasy
- Biggest JumpEasy
- Brighten ImageEasy