Question:

I am trying to figure out what the maximum size of an integer for python. Winner gets many points?

by Guest59627  |  earlier

0 LIKES UnLike

What is the maximum size of an integer for python?

 Tags:

   Report

2 ANSWERS


  1. 192M

    (192,000,000)


  2. A Python int is implemented as "long" in C, which is usually a 32 bit integer which can hold values from -2147483648 to +2147483647. However, when numbers become larger than this, Python automatically switches to its own "long" type, whose size is limited only by the amount of memory available to the interpreter.

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.