At a Leeds sports day, how many teams of five can you make from 23 runners?
At a Leeds sports day, twenty-three runners have signed up for a relay. You need five runners in every team. How many full teams can you make, and how many runners will still need a team?
You already know how to evaluate an arithmetic expression. In Python, the single slash means real division. Twenty-three divided by five gives four point six. That tells you how many teams' worth of runners you have.
Start with twenty-three runners. Subtract five from the number still waiting each time you make a team. The first team leaves eighteen, the second leaves thirteen and the third leaves eight. The fourth team leaves three. That's too few for another team of five.
Now seventeen runners turn up for another race, and you still need five per team. Take groups of five until you can't make another full team. Pick the option that gives both the full teams and the runners left over.
Go back to the twenty-three runners. Twenty-three div five gives four, the number of full teams. We call that the quotient. Twenty-three mod five gives three, the number of runners left. We call that the remainder.
In Python, twenty-three double slash five gives four full teams. Twenty-three percent sign five gives three runners left. Check by multiplying four by five to get twenty. Subtract twenty from twenty-three to get three. Add the twenty used and the three left to get twenty-three again.
This time you have twenty-nine runners and need six for each team. You only want to know how many runners are left after making all the full teams. Pick the Python expression and result that give you that number.
Real division gives four point six. The point six is a fraction of a team, so it doesn't mean point six runners. Double slash gives four. That counts full teams, so four isn't the number of runners left either. The percent sign gives three runners left.
A school buys a coach ticket for sixteen pounds. It pays with as many whole five-pound vouchers as it can. Calculate the amount still to pay. Three vouchers cover fifteen pounds, so sixteen mod five gives one pound still to pay.