My first stumbling block with Python
nicktsocanos at charter.net
Thu Aug 22 15:37:27 CEST 2002
On Thu, 22 Aug 2002 09:12:52 -0400, Mr. Neutron wrote:
> Something like
> MyArray[X][Y] = (tuple)
I am sorry for posting before going to Google Groups (I am getting into
the hang of searching it before posting.. )
I found the answer by using a list of lists
MyArray = [ *512 ]
I can now do
MyArray [Y][X] = (X,Y,Z)
and it works fine.
Now my question is what exactly is this code doing? I don't understand
the way the list is being created (how can I multiply a list?).
More information about the Python-list