Test Pythona jest nan
math.isnan(n)
Famous Flatworm
math.isnan(n)
import math
print math.isnan(float('NaN'))OutputTrue
print math.isnan(1.0)OutputFalse
if(term != term):
print("it's a nan value")