Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to use python to print multiplication table

num = int(input('Which table you need write it here:'))

starting_range = int(input('write the number from where to start:'))
ending_range = int(input('write the end of the number you need:'))
print()
print('So This is the table of', num)
for i in range(starting_range, ending_range + 1):
   print(num, 'x', i, '=', num*i)
Comment

print multiplication table python

# 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 By AyushG
for i in range(1, 11):
   print(num, 'x', i, '=', num*i)
Comment

PREVIOUS NEXT
Code Example
Python :: python convert 
Python :: how to convert float to string in python 
Python :: create column with values mapped from another column python 
Python :: python anytree 
Python :: how to open pygame 
Python :: python list contains string 
Python :: extract coordinate values in xarray 
Python :: check datatype python 
Python :: split paragraphs in python 
Python :: get index of all element in list python 
Python :: how to kill somene 
Python :: palindrome checker python 
Python :: mongodb in python 
Python :: pyinstaller pymssql 
Python :: how to find the longest string python 
Python :: python math functions 
Python :: soustraire deux listes python 
Python :: free download django app for windows 10 
Python :: django change settings at runtime 
Python :: wap in python to check a number is odd or even 
Python :: django login url 
Python :: How to take multiple input form python 
Python :: pandas dataframe from list how to make the date column an index 
Python :: check list for duplicate values python 
Python :: python library for downsampling a photo 
Python :: python print fraction 
Python :: Concat Sort codechef solution 
Python :: structure ternaire python 
Python :: python keyboard hold key 
Python :: python animation 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =