def print_table(num): """ This function prints multiplication table of a given number""" for i in range(1,11): print(num,' x ', i, ' = ',num*i) n = int(input("Please Enter a number to print its multiplication table:")) print_table(n) output:
def print_table(num):
“”” This function prints multiplication table of a given number”””
for i in range(1,11):
print(num,’ x ‘, i, ‘ = ‘,num*i)
n = int(input(“Please Enter a number to print its multiplication table:”))
Write a python program to print Multiplication tables from 2 to 20 whether table values entered by user using Simple …
def print_table(num): """ This function prints multiplication table of a given number""" for i in range(1,11): print(num,' x ', i, ' = ',num*i) n = int(input("Please Enter a number to print its multiplication table:")) print_table(n) output:
def print_table(num):
“”” This function prints multiplication table of a given number”””
for i in range(1,11):
print(num,’ x ‘, i, ‘ = ‘,num*i)
n = int(input(“Please Enter a number to print its multiplication table:”))
print_table(n)
output: