2 of 4
π Lists π Loops
Write a program that removes duplicate values from a list while preserving the order of first occurrence.
Example: [3, 1, 4, 1, 5, 9, 2, 6, 5, 3] β [3, 1, 4, 5, 9, 2, 6]
Original: [3, 1, 4, 1, 5, 9, 2, 6, 5, 3]
No duplicates: [3, 1, 4, 5, 9, 2, 6]