Python verificando se algo é igual a NAN

# Test to see if it is equal to itself
def isNaN(num):
    return num != num
crookie14