You cannot modify a list while iterating over it. You should create a new list and copy the numbers over checking first if it already exists.
numbers = [2,2,4,6,3,4,6,1]
newnums = []
for num in numbers:
if num not in newnums:
newnums.append(num)
print(sorted(newnums))