strings with moreover of one million of characters

Gerrit gerrit at nl.linux.org
Thu Feb 19 07:07:01 EST 2004


Diez B. Roggisch wrote:
> > Is possible use strings with moreover of one million of characters?
> 
> >>> s = "A" * 2000000
> >>> print len(s)
> 2000000
> 
> Works..
>  
> > I try using int() but the program keep blocked.
> 
> What has int() with string to do?

Maybe he's trying to do:
int('1' + '0'*int(1e6))

WYTTD?

Gerrit.
-- 
Weather in Twenthe, Netherlands 19/02 11:25 UTC:
	2.0°C Scattered clouds partly cloudy wind 6.3 m/s ENE (57 m above NAP)
-- 
Asperger's Syndrome - a personal approach:
	http://people.nl.linux.org/~gerrit/english/




More information about the Python-list mailing list