Horacius ReX:
> do you know how to do similar but in two dimensions ?

>>> nr = 3
>>> nc = 4
>>> [[None] * nc for _ in xrange(nr)]
[[None, None, None, None], [None, None, None, None], [None, None,
None, None]]

Bye,
bearophile
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to