Python - How to Check That Value is Not NaN or Infinity

preview_player
Показать описание
#Python #Shorts
To check that the value is not NaN, infinity, or negative infinity you can use the "isfinite" function. Note that 0 is a finite number here :)

-------------------------------------------------------------------------------------
Links:
Рекомендации по теме