Python · While loops

Lab: Digit sums

The check digit at the end of a card number comes from adding up digits, and a loop can peel them off one by one.