Below is a program to print a multiplication table of the entered number.

n=int(input("Enter the table number:"))
print("-"*40)
print("\t\t Table of "+str(n))
print("-"*40)
for i in range(10):
   index=i+1
   result=n*index
   print("\t\t"+str(n)+" * "+str(index)+" = "+str(result))
print("-"*40)
Python program to print multiplication table

Output:

Python program to print multiplication table

Explore More

AI Roadmap using Python

Python is a great foundation for diving into AI! To take the next step in your AI learning journey, here’s a roadmap to guide you. 1. Strengthen Your Math Skills

Create new Python Virtual environment

Create a new virtual environment  Python 3 allows you to manage separate package installations for different projects. It creates a “virtual” isolated Python installation. When you switch projects, you can

Python 10 Programs for Beginners

Program 1:Write a program to create a 2D array using NumPy. Output: Program 2: Write a program to convert a python list to a NumPy array. Output: Program 3: Write a program to create matrix of 3×3 from 11 to 30. Output: Program 4: Write a program to create a data frame to store data of candidates who appeared in