I have to remove the duplicates in a list using Python 3 language. What is wrong with this code?
numbers = [1, 2, 2, 2, 2, 2, 2, 2, 3, 4, 5] 
for num in numbers:
    if numbers.count(num) > 1:
        numbers.remove(num)
print(numbers) 
- please tell how do I solve this problem??
 
     
    