(Dec-19-2020, 08:31 AM)GJG Wrote: Is there any particular reason for it?I guess he did it in order to preserve the original list and be able to show the original unmodified list to you afterwards.
Ops, that was stupid comment on my side. It shows that
nines
and numbers
are actually the same [mutable] object and when modify mutable objects you need to be careful. nines = numbers
does not creaty a copy of numbers
, it just binds name nines
to same object as numbers
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs