Code :
>>> a = range(5) >>> a [0, 1, 2, 3, 4] >>> a.append(5) >>> a [0, 1, 2, 3, 4, 5] >>> b = a >>> a, b ([0, 1, 2, 3, 4, 5], [0, 1, 2, 3, 4, 5]) >>> a.append(6) >>> a, b ([0, 1, 2, 3, 4, 5, 6], [0, 1, 2, 3, 4, 5, 6]) >>> b = list(a) >>> a, b ([0, 1, 2, 3, 4, 5, 6], [0, 1, 2, 3, 4, 5, 6]) >>> a.append(7) >>> a, b ([0, 1, 2, 3, 4, 5, 6, 7], [0, 1, 2, 3, 4, 5, 6]) >>>
|