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)
Output:
- Python 10 Programs for Beginners
- Find index of first occurrence when an unsorted array is sorted
- Find sum non repeating distinct elements array
- Find the only different element in an array
- Queries to find first occurrence of a character in a given range
- Program count occurrences of given character in string
- Find repeating element in sorted array of size n
- Find only non repeating element in a given array
- Python replace all occurrences of a substring in a string
- Count occurrences of a sub string with one variable character
- Python string replace
- Python string strip
- Slicing with negative numbers in Python
- Python Slice Function
- String Slicing in Python
- Python String
- Chainmap in Python
- Collections Userlist in Python
- Collections Userstring in Python
- Defaultdict in Python
- Deque in Python
- Namedtuple in Python
- Ordereddict in Python
- Counters in Python
- Python list
- Python Dictionary
- Python Tuples
- Collections Userdict in Python
- Python Collections Module
- end and sep in Python
- f-strings in Python
- Input and Output in Python
- Variables in Python
- Data Types in Python
- Operators in Python
- Python program to compute net run rate
- Python program to get biggest number
- Python program to count the frequency of every element
- Python program of list and swap its content
- Python program to get max numbers
- Python program to generate patterns
- Python Program to Check ArmstrongÂ
- Python program to print multiplication table
- Python program for domestic electricity billÂ
- Python program to find maximum numberÂ
- Python program to check uppercase or lowercase letterÂ
- Python tutorials
- Python QuickStart