# How do prepare multiplication for any table up to ten in python?

Write a Python program to create the multiplication table (from 1 to 10) of a number,,Previous: Write a Python program to calculate the sum and average of n integer numbers (input from the user)

n = int(input("Input a number: ")) # use for loop to iterate 10 times for i in range(1, 11): print(n, 'x', i, '=', n * i)

```
Input a number: 5
5 x 1 = 5
5 x 2 = 10
5 x 3 = 15
5 x 4 = 20
5 x 5 = 25
5 x 6 = 30
5 x 7 = 35
5 x 8 = 40
5 x 9 = 45
5 x 10 = 50
```

In Python, the user can write the program to display the multiplication table of any number, In this tutorial, we will discuss different methods for printing the multiplication table of any number using Python

Enter the number: 10 Enter the number of which the user wants to print the multiplication table: 13 The Multiplication Table of: 13 13 x 1 = 13 13 x 2 = 26 13 x 3 = 39 13 x 4 = 52 13 x 5 = 65 13 x 6 = 78 13 x 7 = 91 13 x 8 = 104 13 x 9 = 117 13 x 10 = 130

Example 1: Display Multiplication table up to 10 ,Program to print multiplication table of a number,Recursive Program to print multiplication table of a number,Multiplication table till N rows where every Kth row is table of K upto Kth term

```
Input: 5
Output: 5 * 1 = 5
5 * 2 = 10
5 * 3 = 15
5 * 4 = 20
5 * 5 = 25
5 * 6 = 30
5 * 7 = 35
5 * 8 = 40
5 * 9 = 45
5 * 10 = 50
Input: 8
Output: 8 * 1 = 8
8 * 2 = 16
8 * 3 = 24
8 * 4 = 32
8 * 5 = 40
8 * 6 = 48
8 * 7 = 56
8 * 8 = 64
8 * 9 = 72
8 * 10 = 80
8 * 11 = 88
8 * 12 = 96
```

In this tutorial, we will see a simple Python program to display the multiplication table of a given number,,In the program, user is asked to enter the number and the program prints the multiplication table of the input number using for loop

```
# Program published on https: //beginnersbook.com
# Python Program to Print Multiplication Table of a Number
num = int(input("Enter the number: "))
print("Multiplication Table of", num)
for i in range(1, 11):
print(num, "X", i, "=", num * i)
```

This program displays the multiplication table of variable num (from 1 to 10),,To understand this example, you should have the knowledge of the following Python programming topics:,We have displayed the multiplication table of variable num (which is 12 in our case)

# Multiplication table(from 1 to 10) in Python num = 12 # To take input from the user # num = int(input("Display multiplication table of? ")) # Iterate 10 times from i = 1 to 10 for i in range(1, 11): print(num, 'x', i, '=', num * i)

#### Other "python-multiplication" answers related to "How do prepare multiplication for any table up to ten in python?"

- Docker- How to save files locally when I run docker container using bind mount?
- How to reorganize a mathematical expression into its polynomial form
- Can I combine Conv2D and LeakyReLU into a single layer?
- Reindex dataframe inside loop
- How to test a script that relies on selenium?
- Pip not using shims, but system 'pip' for pyenv
- How to assemble a multi plattform distribution of psutil?
- How to give video frame rate when appending to mp4 file
- Xlwings set alignments with api reference to pywin32
- ModuleNotFoundError: No module named 'flask_httpauth'
- Resetting index after removing rows from Pandas data frame
- Create a list of the students' final grades. A student's final grade is their maximum score on these three tests [closed]
- How to download large file from Cloud Run in Django
- Apply SciPy newton method to optimize a pandas dataframe Weibull sum
- Loading Data with nested array from CSV into Vertica DB
- How to make the dice game compare scores between other players?
- Python Keyboard and mouse Listeners. Configure full interception of the keyboard and mouse by button and by button cancel it
- Download csv file in Dash
- Django URLField ErrorDetail “Please enter a valid URL”
- Mask a numpy array for each row until a certain column