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