Run
import math x = math.inf result = math.frexp(x) print('(mantissa, exponent) :', result)
Output