lists with zero-valued elements

Alex Martelli aleax at aleax.it
Sat Dec 27 18:21:45 EST 2003


Nick Forest wrote:

> Any body knows a trivial way to enumerate a list with n zero-valued
> elements?

'enumerate'...?  As in, enumerate(n*[0]) ... ?


Alex





More information about the Python-list mailing list