Using infinity in Python

The following is how to use infinity in Python:

For positive infinity

p_inf = float("inf")

For negative infinity

n_inf = float("-inf")
Next