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