My first ever Python program, comments welcome

Chris Angelico rosuav at gmail.com
Sun Jul 22 03:59:38 CEST 2012


On Sun, Jul 22, 2012 at 11:56 AM, MRAB <python at mrabarnett.plus.com> wrote:
> Since the result is bound to the original name, the
> result is the same.

Yes, assuming there are no other refs.

>>> a=[3,2,1]
>>> b=a
>>> a=sorted(a)
>>> a
[1, 2, 3]
>>> b
[3, 2, 1]

ChrisA



More information about the Python-list mailing list