StayTalentReady

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

  1. Ask the user to enter a number n.
  2. Use a for loop to print the multiplication table from n×1 to n×10.
  3. 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.
← Outcome 4Outcome 6 →

↑ Back to top