Python Practice › sys Module Programs › Program 14
Largest list index
Write a Python program that prints sys.maxsize and shows ints can be bigger.
Output
True True
Approach
sys.maxsizelimits sizes, not integer values.
Solution
import sys print(sys.maxsize == 2 ** 63 - 1)print(sys.maxsize + 1 > sys.maxsize)Output
True True
Learn the concept
New to this topic? Read the lesson, then come back.