What is the maximum value for an integer in Python 3? code example
Example 1: max int value in python
import sys
MAX_INT = sys.maxsize
print(MAX_INT)
''' NOTE: value of sys.maxsize is depend on the fact that how much bit a machine is. '''
Example 2: max int python
import sys
MAX_INT = sys.maxsize - 1
Example 3: how to get maximum value of number in python
float('inf')