A row of the times table
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version.
This one builds on a lesson you haven't finished yet. Do that lesson first:
Python Basics · While loops →
A row of the times table
Use a while loop to print the 3 times table from 3 x 1 to 3 x 5, as 3, 6, 9, 12, 15 — one per line.
The counter and the thing you print do not have to be the same. i counts 1 to 5; what you print is 3 * i.
Use a while loop to print the 3 times table from 3 x 1 to 3 x 5, as 3, 6, 9, 12, 15 — one per line.
Click Run to see the output here.