I wrote this bit of code to remove duplicate numbers in a list, but it doesn’t want to remove the extra copy of the number one for some reason. I also tried removing the entire list and just putting two ones and it worked like it was supposed to. Could someone explain why this happened?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Getting rid of duplicates (beginner course) | 3 | 362 | October 24, 2020 | |
3. List Remove Duplicates | 1 | 54 | January 7, 2025 | |
Solution to List Remove Duplicates using functions in Python | 0 | 23 | July 19, 2024 | |
Removing multiple the same items from a list | 7 | 394 | January 28, 2022 | |
Heap Remove Issue | 0 | 276 | July 6, 2023 |