Jak znaleźć duplikaty ciągów na liście funkcji String Python
sam_list = [11, 13, 15, 16, 13, 15, 16, 11]
print ("The list is: " + str(sam_list))
# to remove duplicates from list
result = []
[result.append(x) for x in sam_list if x not in result]
# printing list after removal
print ("The list after removing duplicates: " + str(result))
Mercy Wacera