Drop Lowest Average
A teacher drops the single lowest score before averaging. Return the average of the remaining scores as a float. If the lowest value appears several times, only one copy is dropped. scores has at least 2 values.
Example 1
scores [50,80,100]
returns 90.0
Dropping 50 leaves 80 and 100, which average 90.0.
Constraints
2 <= len(scores) <= 100
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More NumPy problems
- Empty SeatsEasy
- Fill MissingEasy
- First Day Over LimitEasy
- Full ColumnsEasy
- Good ColumnsEasy
- Group MaximumsEasy
- Is SortedEasy
- Is SymmetricEasy