0 votes
1 view
in Python by (20.4k points)

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?

1 Answer

0 votes
by (50.8k points)

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.