Answers for "how to do table in python"

1

how to make table using python

from prettytable import PrettyTable
A = PrettyTable()
A.add_column("Pokimon",["wartortle"])
A.add_column("Type",["Water attack"])
print(A)
Posted by: Guest on September-04-2021
0

table in python

number = int(input ("Enter the number of which the user wants to print the multiplication table: "))      
#  10 times       
print ("The Multiplication Table of: ", number)    
for count in range(1, 11):      
   print (number, 'x', count, '=', number * count)
Posted by: Guest on January-12-2022

Python Answers by Framework

Browse Popular Code Answers by Language