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