How about

print ["%04d" % x for x in xrange(10000)]

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to