Как проверить, является ли строковое значение NAN в Python

if(term != term):
	print("it's a nan value")
the other guy