Toggle light / dark theme

Introducing ways of defining and working with Infinite values in Python.


∀ x ∈ ℝ, -∞ < x < ∞

Every number is smaller than positive infinity and bigger than negative infinity.

There is a variety of ways in which we can represent infinity in Python. We will discuss three of the most popular ones below.