 # How do you make a Multiplication Table in Python?

In the below example, the input for the program is taken from the user. The input given by the user at the time output is 10. The range given for the loop is (1,11)which means that the number must be greater than equal to one and lesser than 11. In the first iteration, the number is multiplied by 1. In the second iteration, the number is multiplied by 2, and so on until 10. Lets see multiplication table in python.

### Source Code for Python Multiplication Table using the for Loop Source

                    
numb = int(input(" Enter a number : "))

# using the for loop to generate the multiplication tables

print("Table of: ")

for a in range(1,11):

print(num,'x',a,'=',num*a)

Output

Enter the number : 7

Multiplication Table of :

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




#### Related Topics

Share with friends
Customize your course in 30 seconds

Which class are you in?

5th
6th
7th
8th
9th
10th
11th
12th
Get ready for all-new Live Classes!
Now learn Live with India's best teachers. Join courses with the best schedule and enjoy fun and interactive classes.  Ashhar Firdausi
IIT Roorkee
Biology  Dr. Nazma Shaik
VTU
Chemistry  Gaurav Tiwari
APJAKTU
Physics
Get Started
Customize your course in 30 seconds

Which class are you in?

No thanks.