Python sprawdzający, czy coś jest równe NAN

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