populating a doubly-subscripted array
Robert Kern
robert.kern at gmail.com
Mon Nov 8 17:36:36 EST 2010
On 11/8/10 3:56 PM, ghw at accutrol.com wrote:
> What am I missing? I am using Python 3.1.2.
>
> ff = [[0.0]*5]*5
http://docs.python.org/faq/programming.html#how-do-i-create-a-multidimensional-list
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the Python-list
mailing list