max float python

>>> sys.float_info.max
1.7976931348623157e+308

Here is what the above code is Doing:
1. It’s creating a variable called sys.
2. It’s setting the float_info attribute of sys to a tuple of information about the float type.
3. It’s printing the max value of the float type.

The sys module is a built-in module that provides access to some variables used or maintained by the interpreter and to functions that interact strongly with the interpreter.

The float_info attribute is a tuple of information about the float type. It contains (among other things) the max and min values that can be represented by a float.

The max value is the largest positive number that can be represented by a float. It’s about 1.8×10308.

The min value is the smallest positive number that can be represented by a float. It’s about 2.2×10-308.