my first real program blows up, can someone tell me why?
moshez at math.huji.ac.il
Sun Mar 5 18:39:05 CET 2000
On Sun, 5 Mar 2000, Jerry F. Davis wrote:
> I read the tutorial and tried a variation on what i saw there. and it
> blew up, with a integer overflow. can someone tell me why?
Integers are limited to the machine word size (usually 32 bits). Try using
long integers (initialize a and b with 1L) and see it work.
Moshe Zadka <mzadka at geocities.com>.
More information about the Python-list