Skip to content

Tag: integer

Maximum and Minimum values for ints

How do I represent minimum and maximum values for integers in Python? In Java, we have Integer.MIN_VALUE and Integer.MAX_VALUE. See also: What is the maximum float in Python?. Answer Python 3 In Python 3, this question doesn’t apply. The plain int type is unbounded. However, you might actually be lookin…