Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Why does pop() removes an element from more than one list?
Post: RE: Why does pop() removes an element from more th...

Thank you, Gribouillis and buran! The problem is now solved! Now I understand that list1 and list2 point to the same object. Is this the case only in defining a new list but not other instances of ob...
albufork General Coding Help 5 2,847 Nov-17-2019, 07:12 AM
    Thread: Why does pop() removes an element from more than one list?
Post: Why does pop() removes an element from more than o...

I have just started using python and encountered this problem. I made list2 a copy of list1. When I remove the last element ("b") in list2 using list2.pop(), the same thing happens to list1 at the sam...
albufork General Coding Help 5 2,847 Nov-16-2019, 04:52 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020