def list(lst):
lst_new = []
while lst:
lst_temp = []
for i in lst:
if i not in lst_temp:
lst_temp.append(i)
lst.remove(i)
lst_new += lst_temp
return lst_new
l = list(["one", "one", "two", "two", "three", "three", "four", "one"])
d = ["one", "two", "three", "four", "one", "two", "three", "one"] #должно быть так
print(l)
print(d)