for loop: range() result has too many items

Rhodri James rhodri at wildebst.demon.co.uk
Tue Oct 13 18:05:45 EDT 2009


On Tue, 13 Oct 2009 22:17:58 +0100, Peng Yu <pengyu.ut at gmail.com> wrote:

> The following code does not run because range() does not accept a big
> number. Is there a way to make the code work. I'm wondering if there
> is a way to write a for-loop in python similar to that of C style.

xrange()

Have you read the documentation at all?

-- 
Rhodri James *-* Wildebeest Herder to the Masses



More information about the Python-list mailing list