Python · For loops and range

Totals and counts with for

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.