Toggle light / dark theme

How to Deal with Infinity in Python

Posted in futurism

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.

Leave a Reply