Articles → Python → isnan function in python

isnan function in python






Purpose





Example


import math


print("Is valid number : ", math.isnan(-3))


print("Is valid number : ", math.isnan(4))

print("Is valid number : ", math.isnan(float("nan")))



Output



Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Thursday, April 18, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250