Back
I am looking for minimum and maximum values for integers in python. For eg., in Java, we have Integer.MIN_VALUE and Integer.MAX_VALUE. Is there something like this in python?
If you are using Python 3, then you no need to worry about the range of int value because the int type is unbounded in Python 3.
If you want to know the machine's word size then you can use sys.maxsize.
31k questions
32.8k answers
501 comments
693 users