Addressing the last element of a list

pinkfloydhomer at gmail.com pinkfloydhomer at gmail.com
Tue Nov 8 04:43:43 EST 2005


But if lst[42]["pos"] happens to hold an integer value, then

a = lst[42]["pos"]

will _copy_ that integer value into 'a', right? Changing 'a' will not
change the value at lst[42]["pos"]




More information about the Python-list mailing list