Python Program to Display the multiplication Table: In this program, you will learn about the python program to display the multiplication table. This program displays the multiplication table of variable num (from 1 to 10).
Python Program to Display the multiplication Table
Source Code
# 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)
Output of Program
Python Program to Display the multiplication Table