integer max in python code example Example 1: min int python Click to copyimport sys MIN_INT = -sys.maxsize - 1 Example 2: how to get maximum value of number in python Click to copyfloat('inf')