Thank you both for your reply !
On Tue, Aug 12, 2008 at 8:52 PM, Demarche Bruno <[EMAIL PROTECTED]> wrote:
> Thank you Nigel, it's clearer for both of us now.
> I think wat confused her is the fact that :
>
> L = [1,2,3]
> def foo(my_list):
>my_list.append(4)
Thank you Nigel, it's clearer for both of us now.
I think wat confused her is the fact that :
L = [1,2,3]
def foo(my_list):
my_list.append(4)
will modify L, while the following:
L = [1,2,3]
def foo(my_list):
my_list = [1,2,3,4]
will not.
On Tue, Aug 12, 2008 at 6:46 PM, Nigel Rantor <[