What is the problem in the below code for "removing duplicates in ~~~list". I know we can use append() to do the same thing.
l=0
numbers = [101,3,7,2,3,5,9,11,11,11,9,4,9,81,6]
numbers.sort()
for each_element in numbers:
if each_element==l:
l = each_element
numbers.remove(each_element)
else:
l=each_element
print(numbers)
~~~ end of code