Average Temperature
temps holds one temperature reading per day. Return the average of the readings as a float.
Example 1
temps [20,22,27]
returns 23.0
(20 + 22 + 27) / 3 = 23.0
Constraints
1 <= len(temps) <= 100
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More NumPy problems
- Black and WhiteBeginner
- Celsius to FahrenheitBeginner
- Clip ScoresBeginner
- CorrelationBeginner
- Count DistinctBeginner
- Count PositivesBeginner
- Count Target in GridBeginner
- Count the MaximumBeginner