L=[1,2,3,3,5,5,5,8,4,6,9,7,2,'a','s','a','e','s','z']
def DelDupli(L):
L1=[]
for i in L:
if i not in L1:
L1.append(i)
return L1
def DelDupli2(L):
return list(set(L))
def DelDupli3(L):
dict={}
for i in L:
dict[i] = 0
L=list(dict.keys())
return L
def DelDupli4(L):
for i in L:
while L.count(i)>1:
L.remove(i)
return L
print(DelDupli(L))
print(DelDupli2(L))
print(DelDupli3(L))
print(DelDupli4(L))
----->
[1, 2, 3, 5, 8, 4, 6, 9, 7, 'a', 's', 'e', 'z']
['a', 1, 2, 3, 4, 5, 6, 7, 8, 9, 's', 'e', 'z']
['a', 1, 2, 3, 4, 5, 6, 7, 8, 9, 's', 'e', 'z']
[1, 3, 5, 8, 4, 6, 9, 7, 2, 'a', 'e', 's', 'z']