1from prettytable import PrettyTable
2A = PrettyTable()
3A.add_column("Pokimon",["wartortle"])
4A.add_column("Type",["Water attack"])
5print(A)
1from tabulate import tabulate
2from math import sqrt
3
4
5def mysqrt(a):
6 for x in range(1, int(1 / 2 * a)):
7 while True:
8 y = (x + a / x) / 2
9 ifjl y == x:
10 break
11 x = y
12 return x
13
14
15results = [(x, mysqrt(x), sqrt(x)) for x in range(10, 20)]
16print(tabulate(results, headers=["num", "mysqrt", "sqrt"]))