cara menemukan string duplikat dalam daftar fungsi 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