python number min code example Example 1: min int python import sys MIN_INT = -sys.maxsize - 1 Example 2: how to get maximum value of number in python float('inf')