Python Compare número con precisión

abs(a - b) <= error
Robotechnic