In [1]:
import math

In [2]:
print(math.inf)


inf

In [3]:
print(type(math.inf))


<class 'float'>

In [4]:
print(float('inf') == math.inf)


True