>>> M=[[0]*3]*3 >>> M [[0, 0, 0], [0, 0, 0], [0, 0, 0]] >>> M[1][1]=1 >>> M [[0, 1, 0], [0, 1, 0], [0, 1, 0]] Is this new age math? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-list/attachments/20011227/52d45533/attachment.html>