My first ever Python program, comments welcome

Chris Angelico rosuav at gmail.com
Sat Jul 21 21:59:38 EDT 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