Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

finding duplicate characters in a string 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: #finding #duplicate #characters #string #python
ADD COMMENT
Topic
Name
1+2 =