FunctionRacerProblemsRace

Total Over Limit

EasyNumPyPython

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

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More NumPy problems