Python · For loops and range
Adding up a week of rainfall and counting failed tests follow one three-part plan, and a for loop writes it shorter than a while.