Exercises — Outcome 5: Iteration and Loops
1 hands-on tasks. Do them in order; each one feeds the Canvas item it names.
25 min · hands-on
1. Multiplication Table
- Ask the user to enter a number n.
- Use a for loop to print the multiplication table from n×1 to n×10.
- Add a second version using a while loop that produces the same output.
Turn in / bring: Python script with both for and while versions submitted to Canvas.