Why can't you assign to a list in a loop without enumerate?
fredrik at pythonware.com
Wed Nov 1 14:31:51 CET 2006
Bjoern Schliessmann wrote:
>> what's wrong with using enumerate? or a list comprehension? or
>> some other of the many different ways you can use to build a list
>> from a set of values?
> Shouldn't there be one -- and preferably only one -- obvious way to
> do it? 8)
> Python Cookbook says "enumerate()", is this still correct with 2.5?
More information about the Python-list