Hey people of the internet,
help me out on this one, does python insert function list.insert(index,element)
have something like backward inheritance?, If there is something like that.
If not, then why is is n being edited when I insert something in n1 even when.
Asked
Active
Viewed 18 times
0

Beetran Dahiya
- 31
- 5
-
because `n1` is a reference to `n`, not a copy of it – Sayse Mar 20 '22 at 17:00
-
Mandatory link to [Ned Batchelder](https://nedbatchelder.com/text/names.html) – quamrana Mar 20 '22 at 17:05