Porównaj, czy 2 liczby są stosunkowo równe

from math import isclose
a = 1.0
b = 1.00000001
isclose(a, b, rel_tol=1e-9, abs_tol=0.0)
Anxious Alligator