Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
# Import math Library import math # Check whether some values are infinite print (math.isinf (56)) print (math.isinf (-45.34)) print (math.isinf (+45.34)) print (math.isinf (math.inf)) print (math.isinf (float("nan"))) print (math.isinf (float("inf"))) print (math.isinf (float("-inf"))) print (math.isinf (-math.inf))
False
False
False
True
False
True
True
True