Output: p >
In Python, the integer value is not limited by the number of bits and can expand to the limit of available memory (Sources: this and this ) . Thus, we never need any special device to store large numbers (imagine the arithmetic above in C / C++).
As a side note, there is only one type "int" in Python 3 for all types of integers. In Python 2.7. There are two separate types "int" (32-bit) and "long int", which are the same as "int" in Python 3.x, that is, they can store arbitrarily large numbers.
Output in Python 2.7:
& lt; type 'int' & gt; & lt; type 'long' & gt;
Output in Python 3:
& lt; type' int' & gt; & lt; type 'int' & gt;
We can try more interesting programs like below:
# Print 100 to raise to power 100
This article courtesy of Abhay Rati . Please post comments if you find something wrong or if you would like to share more information on the topic under discussion