1def remove_dupiclates(list_):
2 new_list = []
3 for a in list_:
4 if a not in new_list:
5 new_list.append(a)
6 return new_list
1my_tuple = (1, 2, 2, 5, 1, 3, 5, 3)
2my_tupele = tuple(set(my_tuple))
3print(my_tupele)
1if mylist:
2 mylist.sort()
3 last = mylist[-1]
4 for i in range(len(mylist)-2, -1, -1):
5 if last == mylist[i]:
6 del mylist[i]
7 else:
8 last = mylist[i]
9# Quicker if all elements are hashables:
10mylist = list(set(mylist))
1word = input().split()
2
3for i in word:
4 if word.count(i) > 1:
5 word.remove(i)
6