data types float fromhex(st hex(float = str =' + the exponent is indicated using ("power"rather than since is valid hexadecimal digit in addition to the built-in floating-point functionalitythe math module provides many more functions that operate on floatsas shown in tables and here are some code snippets that show how to make use of the module' functionalityimport math math pi ( * python outputs math hypot( math modf( python outputs( ( the math hypot(function calculates the distance from the origin to the point (xyand produces the same result as math sqrt(( * ( * )the math module is very dependent on the underlying math library that python was compiled against this means that some error conditions and boundary cases may behave differently on different platforms complex numbers |the complex data type is an immutable type that holds pair of floatsone representing the real part and the other the imaginary part of complex number literal complex numbers are written with the real and imaginary parts joined by or signand with the imaginary part followed by here are some examples + + - notice that if the real part is we can omit it entirely the separate parts of complex are available as attributes real and imag for examplez - + realz imag (- except for //%divmod()and the three-argument pow()all the numeric operators and functions in table ( can be used with complex numbersand so can the augmented assignment versions in additioncomplex numbers mathematicians use to signify but python follows the engineering tradition and uses