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


Picture showing the output of the isnan function in python



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

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250