Counting Duplicates
Count the number of Duplicates
Example
Solutions
π Python
def duplicate_count(text):
return len(set( [i for n ,i in enumerate(text.lower()) if i in text[0:n].lower() ]))Last updated