for loop: range() result has too many items

Rhodri James rhodri at wildebst.demon.co.uk
Wed Oct 14 00:05:45 CEST 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