Python Times Table Row
for i in 1..10Practice

One row of the multiplication table

For number n, print n×1, n×2, … n×10. Same pattern as a poster on a classroom wall — one loop, ten products.

Picture this: one row of a times table

Fix n. Loop k from 1 to 10. Print n × k.

nthe number
→
k = 1…10loop
→
n * kproduct
→
printone line

In easy words: What is this loop doing?

This loop multiplies one number n by 1, then 2, then 3 ... up to 10. It repeats the same multiplication pattern with a changing counter.

Where this is used

Used in billing calculations, quantity scaling, school table drills, and grid/math apps where repeated multiplication is needed.

Real world: “Table of 3” poster

3×1=3, 3×2=6, … 3×10=30. Cashiers and students use these patterns mentally; your loop builds the row automatically for any n.

Table of 3

3\t6\t9\t12\t15\t18\t21\t24\t27\t30
·for i in range(1, 11): # n * i

Output format

  • Practice uses tab \t between numbers on one line.
  • n * i when i goes from 1 to 10.

Example Program

1n = int(input())
2print("\t".join(str(n * i) for i in range(1, 11)))