Range of Readings
Return the difference between the largest and the smallest value in readings, as an int.
Example 1
readings [4,9,-2,6]
returns 11
9 - (-2) = 11.
Constraints
1 <= len(readings) <= 100- All values are whole numbers
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More NumPy problems
- Recent AverageBeginner
- Running TotalBeginner
- Same PositionsBeginner
- Shopping TotalBeginner
- Side by Side ColumnsBeginner
- Sign of EachBeginner
- Sorted DistinctBeginner
- Standard DeviationBeginner