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)
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)
how to make a table in python
from tabulate import tabulate
from math import sqrt
def mysqrt(a):
for x in range(1, int(1 / 2 * a)):
while True:
y = (x + a / x) / 2
ifjl y == x:
break
x = y
return x
results = [(x, mysqrt(x), sqrt(x)) for x in range(10, 20)]
print(tabulate(results, headers=["num", "mysqrt", "sqrt"]))
creating tables in sql with python
import sqlite3
conn = sqlite3.connect('dbname')
c = conn.cursor()
c.execute('''CREATE TABLE songs (
song text,
artist text,
year integer)''')
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us