Answers for "python table"

1

python table

# There's an error on the second code, so i fixed it
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
            if 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"]))
Posted by: Guest on November-25-2020
0

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"]))
Posted by: Guest on October-23-2020
2

tables in python

# You can make tables in python using pandas.
# Search up a documentation about pandas.
Posted by: Guest on August-28-2020
0

python table

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
            if 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"]))
Posted by: Guest on February-18-2021
0

python tableau

l = [[0 for i in range(10)] for i in range(10)]
Posted by: Guest on March-15-2020

Python Answers by Framework

Browse Popular Code Answers by Language