how to print tables using python

Solutions on MaxInterview for how to print tables using python by the best coders in the world

showing results for - "how to print tables using python"
Sara
27 Jan 2020
1please subscribe my channel - https://bit.ly/2Me2CfB
2
3t = int(input("ENTER THE NUMBER : "))
4for i in range(1, 11):
5  b  = t * i
6  print(f"{t} x {i} = {b}")
Thais
21 Jan 2020
1please subscribe my channel - https://bit.ly/2Me2CfB
2
3t = int(input("ENTER THE NUMBER : "))
4n = int(input(f"HOW MUCH TIMES DO YOU WANT TO MULTIPLY '{t}' : "))
5for i in range(1, (n + 1)):
6  b  = t * i
7  print(f"{t} x {i} = {b}")
Jean-Baptiste
28 Jan 2017
1# Multiplication table (from 1 to 10) in Python
2
3num = 12
4
5# To take input from the user
6# num = int(input("Display multiplication table of? "))
7
8# Iterate 10 times from i = 1 to 10
9for i in range(1, 11):
10   print(num, 'x', i, '=', num*i)
11