Tim Chase wrote:
...

> If you need the individual digits for something, you can use
> 
>     for i in xrange(0,10000):
>         d1,d2,d3,d4 = list("%04i" % i)

strings are sequences too, and you need only write

           d1,d2,d3,d4 = "%04i" % i
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to