Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
Show the times table of , from to .
Use the loop variable inside the calculation.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, compare your working with the solution.
Plan. The loop variable goes from 1 to 10, so we use range(1, 11). In every round, we show 7, the loop variable and the product.
The last line is 7 x 10 = 70.
Log in to join the discussion.
Loading…