Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Check if there are duplicates in list


list= ["a", "a", "b", "c", "d", "e", "f"] 

 
for x in range(0, len(list)-1):
    if(list[x]==list[x+1]):
        print("Duplicate found!");
    
    

print(list) 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Check #duplicates #list
ADD COMMENT
Topic
Name
1+8 =