max and min int
# work in python 3 import sys max = sys.maxsize min = -sys.maxsize # If you just need a number that's bigger than all others, you can use # work in python 2 and 3 float('inf') float('-inf')