Total Over Limit
bills holds the amounts of some bills. Add up only the bills that are larger than limit and return that total as an int. If none are larger, return 0.
Example 1
bills [5,50,20,8]
limit 10
returns 70
Only 50 and 20 are above 10, and 50 + 20 = 70.
Constraints
1 <= len(bills) <= 100
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More NumPy problems
- Trend SlopeEasy
- Trimmed MeanEasy
- Vector DistanceEasy
- Weighted AverageEasy
- Weighted Row ScoresEasy
- Whole DollarsEasy
- Z-ScoresEasy
- Zero PositionsEasy