Compute the percentile rank of a value in a list of numbers.
Constraints
Example
>>> percentile_rank([1, 2, 3, 4], 3) 75.0 >>> percentile_rank([1, 2, 3, 4], 5) 100.0 >>> percentile_rank([1, 2, 3, 4], 0) 0.0 >>> percentile_rank([], 10) 0.0
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints