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
Posted By - | Karan Gupta |
|
Posted On - | Thursday, April 18, 2019 |