"Alan Gauld" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
[snip]
Something likeL = [[0,0,0] *3]
I think you meant:
[[0,0,0]]*3
[[0, 0, 0], [0, 0, 0], [0, 0, 0]] -Mark
Now L contains 3 copies of the same list so when you change any one copy it is reflected in all of the other copies.L[0][1] = 6 L[[0,6,0],[0,6,0],[0,6,0]]
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor