>>> infinity = float("inf") >>> infinity inf >>> a = 1 >>> max(a, infinity) inf >>> min(a, infinity) 1