Python Usuń duplikaty z listy
# remove duplicate from given_list using list comprehension
res = []
[res.append(x) for x in given_list if x not in res]
Weary Whale
# remove duplicate from given_list using list comprehension
res = []
[res.append(x) for x in given_list if x not in res]
mylist = ["a", "b", "a", "c", "c"]
mylist = list(dict.fromkeys(mylist))
print(mylist)