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