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 :: linux uninstall python 
Python :: py check discord token 
Python :: python parse args 
Python :: RandomForestRegressor import 
Python :: stop a subprocess python 
Python :: print key of dictionary python 
Python :: password manager python with min and max pass lenght 
Python :: extract numbers from sklearn classification_report 
Python :: sort list of dictionaries by key python 
Python :: how to split a list to 1000 items python 
Python :: python clear screen 
Python :: python sort with comparator 
Python :: python program to find n prime numbers 
Python :: calculate highest frequency or mode in pandas dataframe 
Python :: python series sort 
Python :: python dict to url params 
Python :: check the input format of a date python 
Python :: numpy random int 
Python :: numpy style docstrings 
Python :: python convert xd8 to utf8 
Python :: plot_histogram qiskit pycharm 
Python :: pickle save 
Python :: flask app starter 
Python :: how to input multiple integers in python 
Python :: making a python code without python 
Python :: apolatrix 
Python :: python timestamp shift one day 
Python :: python elementtree build xml 
Python :: place a widget in a specific position in tkinter 
Python :: count how many vowels in a string python 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =