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