Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to find duplicate numbers in list in python

l=[1,2,3,4,5,2,3,4,7,9,5]
l1=[]
for i in l:
    if i not in l1:
        l1.append(i)
    else:
        print(i,end=' ')
Source by www.educative.io #
 
PREVIOUS NEXT
Tagged: #find #duplicate #numbers #list #python
ADD COMMENT
Topic
Name
6+3 =