Jun-09-2020, 02:35 PM
Ok. Iterate over the copy and then remove the duplicate in the original list. Got it. I changed the code to:
for i in L1[:]:and it worked. Thanks. solved.
Why is one duplicate not removed?
|
|
Messages In This Thread |
Why is one duplicate not removed? - by Emekadavid - Jun-09-2020, 02:11 PM
RE: Why is one duplicate not removed? - by Yoriz - Jun-09-2020, 02:30 PM
RE: Why is one duplicate not removed? - by Emekadavid - Jun-09-2020, 02:35 PM
RE: Why is one duplicate not removed? - by divyansh - Jun-09-2020, 05:56 PM
RE: Why is one duplicate not removed? - by perfringo - Jun-09-2020, 06:34 PM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Script problem - Illegal access to removed OSM object | MarcPolo72 | 0 | 113 |
Jun-23-2024, 04:26 PM Last Post: MarcPolo72 |
|
Openpyxl: Excel formula & condition formatting removed | JaneTan | 0 | 3,839 |
Sep-25-2020, 07:02 AM Last Post: JaneTan |
|
How to check if video has been deleted or removed in youtube using python | Prince_Bhatia | 14 | 12,373 |
Feb-21-2020, 04:33 AM Last Post: jehoshua |
|
how to detect \x in string so it can be removed | azimmermann | 5 | 6,130 |
Jul-05-2017, 10:46 PM Last Post: DeaD_EyE |