What is the maximum possible value of an integer in Python ? Last Updated : 28 Jul, 2022 Comments Improve Suggest changes Like Article Like Report Consider below Python program. Python3 # A Python program to demonstrate that we can store # large numbers in Python x = 10000000000000000000000000000000000000000000 x = x + 1 print (x) Output : 10000000000000000000000000000000000000000001 In Python, value of an integer is not restricted by the number of bits and can expand to the limit of the available memory (Sources : this and this). Thus we never need any special arrangement for storing large numbers (Imagine doing above arithmetic in C/C++).As a side note, in Python 3, there is only one type "int" for all type of integers. In Python 2.7. there are two separate types "int" (which is 32 bit) and "long int" that is same as "int" of Python 3.x, i.e., can store arbitrarily large numbers. Python # A Python program to show that there are two types in # Python 2.7 : int and long int # And in Python 3 there is only one type : int x = 10 print(type(x)) x = 10000000000000000000000000000000000000000000 print(type(x)) Output in Python 2.7 : <type 'int'> <type 'long'> Python3 # A Python3 program to show that there are two types in # Python 2.7 : int and long int # And in Python 3 there is only one type : int x = 10 print(type(x)) x = 10000000000000000000000000000000000000000000 print(type(x)) Output in Python 3 : <type 'int'> <type 'int'> We may want to try more interesting programs like below : Python3 # Printing 100 raise to power 100 print(100**100) Comment More infoAdvertise with us Next Article What is the maximum possible value of an integer in Python ? K kartik Improve Article Tags : Python large-numbers Practice Tags : python Similar Reads Python - Find maximum value in each sublist Finding the maximum value in each sublist involves iterating through a list of lists and identifying the largest element within each sublist. This operation is useful for analyzing data sets, and extracting the most significant values from grouped information. In this article, we will explore method 2 min read Maximum and Minimum element in a Set in Python We are given a set and our task is to find the maximum and minimum elements from the given set. For example, if we have a = {3, 1, 7, 5, 9}, the maximum element should be 9, and the minimum element should be 1.Letâs explore different methods to do it:1. Using min() & max() functionThe built-in m 3 min read Find Maximum of two numbers in Python Finding the maximum of two numbers in Python helps determine the larger of the two values. For example, given two numbers a = 7 and b = 3, you may want to extract the larger number, which in this case is 7. Let's explore different ways to do this efficiently.Using max()max() function is the most opt 2 min read Return the maximum of an array or maximum ignoring any NaNs in Python In this article, we will cover how to return the maximum of an array or maximum by ignoring any NaNs in Python using NumPy. ExampleInput: [ -1. -2. nan 1000.] Output: 1000.0 Explanation: maximum value of the array ignoring nans. One approach to use the built-in Python function max(), along with the 3 min read How to find the int value of a string in Python? In Python, we can represent an integer value in the form of string. Int value of a string can be obtained by using inbuilt function in python called as int(). Here we can pass string as argument to this function which returns int value of a string. int() Syntax : int(string, base) Parameters : strin 2 min read Like