- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to Display the multiplication Table using Python?
You can create the multiplication table for any number using a simple loop.
example
def print_mul_table(num): for i in range(1, 11): print("{:d} X {:d} = {:d}".format(num, i, num * i)) print_mul_table(5)
Output
This will give the output
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
- Related Articles
- How to find and display the Multiplication Table in C#?
- How to Display Calendar using Python?
- C program to print multiplication table by using for Loop
- C++ Program to Generate Multiplication Table
- Swift Program to Generate Multiplication Table
- Java Program to Generate Multiplication Table
- Kotlin Program to Generate Multiplication Table
- Haskell Program to Generate Multiplication Table
- Display MySQL table values using Java
- C Program to represent a multiplication table.
- Python Tkinter – How to display a table editor in a text widget?
- How to display the Engine of a MySQL table?
- Java Program to Print the Multiplication Table in Triangular Form
- C++ Program to Print the Multiplication Table in Triangular Form
- How can element wise multiplication be done in Tensorflow using Python?

Advertisements