Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to find duplicate occurrences in python

#finds duplicate characters
def duplicatecharacters(s:str):
    for i in s:
        if s.count(i)>1:
            return True
    return False
print(duplicatecharacters(""))
 
PREVIOUS NEXT
Tagged: #find #duplicate #occurrences #python
ADD COMMENT
Topic
Name
7+5 =