Python · While loops
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.