Multiplication Table
Python
15 pts
Multiplication Table
Print the multiplication table of 7 from 1 to 10 using a for loop and range(). Also create an empty list called results before the loop and append every answer to it.
Expected output:
7 x 1 = 7 7 x 2 = 14 7 x 3 = 21 7 x 4 = 28 7 x 5 = 35 7 x 6 = 42 7 x 7 = 49 7 x 8 = 56 7 x 9 = 63 7 x 10 = 70
Checklist
- Loop over the numbers 1 to 10 with
range(). - Append every answer to
results. - Print each line of the table.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
