On Sep 20, 2:20 pm, Andrew <[EMAIL PROTECTED]> wrote: > please explain this behavior to a newb: > > >>> a = [1,2,3,4] > >>> b = ["a","b","c","d"] > >>> a > [1, 2, 3, 4] > >>> b > > ['a', 'b', 'c', 'd'] > > >>> a[0:2] > [1, 2] > >>> a > [1, 2, 3, 4] > >>> b[2:4] > ['c', 'd'] > >>> a[0:2] = b[0:2] > >>> b[2:4] = a[2:4] > >>> a > ['a', 'b', 3, 4] > >>> b > ['a', 'b', 3, 4]
What else would you expect to happen? -- http://mail.python.org/mailman/listinfo/python-list