does comparing to infinity consume more time python code example Example: python infinity test = float("inf")