Entfernen Sie Duplikate Python
mylist = ["a", "b", "a", "c", "c"]
mylist = list(dict.fromkeys(mylist))
Important Iguana
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)
list({*map(tuple, map(sorted, test_list))})