Run
import math x = -math.inf result = math.isinf(x) print('isinf(x) :', result)
Output