En Tue, 11 Nov 2008 23:09:25 -0200, <[EMAIL PROTECTED]> escribió:
On Nov 11, 7:48 pm, [EMAIL PROTECTED] wrote:

To create a 2D list, that is a list of lists:
x = [[0] * ncols for i in nrows]

Many thanks, I don't think I would ever 'discovered' this.

Try reading the FAQ: http://www.python.org/doc/faq/programming/#how-do-i-create-a-multidimensional-list

--
Gabriel Genellina

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

Reply via email to