shared reference please
Egbert Bouwman
egbert at bork.demon.nl
Mon Oct 2 10:34:53 EDT 2000
Is there a way to make a list element and and a variable always
show the same value, even if that value is a simple number or string ?
Eg
>>> a = [100,200]
>>> weight = a[0]
>>> length = a[1]
>>> length = 222
>>> a
[100, 222]
and vice versa:
>>> a[0] = 99
>>> weight
>>> a
[99, 222]
egbert
--
Egbert Bouwman - Keizersgracht 197 II - 1016 DS Amsterdam - 020 6257991
========================================================================
More information about the Python-list
mailing list