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