Percent at or Below
Return the percent (0 to 100) of the numbers in scores that are less than or equal to score.
Example 1
scores [50,60,70,80]
score 70
returns 75.0
50, 60 and 70 are at or below 70: three of four.
Constraints
1 <= len(scores) <= 600 <= scores[i], score <= 100
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More SciPy problems
- Standard ErrorBeginner
- Standard ScoresBeginner
- The ModeBeginner
- Which Way It LeansBeginner
- At Least K WinsEasy
- Best Fit LineEasy
- Calls in an HourEasy
- Chance BetweenEasy