mylist = ["a", "b", "a", "c", "c"]
mylist = list(dict.fromkeys(mylist))
def remove_dupiclates(list_):
new_list = []
for a in list_:
if a not in new_list:
new_list.append(a)
return new_list
my_tuple = (1, 2, 2, 5, 1, 3, 5, 3)
my_tupele = tuple(set(my_tuple))
print(my_tupele)
word = input().split()
for i in word:
if word.count(i) > 1:
word.remove(i)
if mylist:
mylist.sort()
last = mylist[-1]
for i in range(len(mylist)-2, -1, -1):
if last == mylist[i]:
del mylist[i]
else:
last = mylist[i]
# Quicker if all elements are hashables:
mylist = list(set(mylist))
list({*map(tuple, map(sorted, test_list))})