python check number of same letters in string code example
Example 1: python return number of characters in string
# Example usage:
your_string = "Example usage"
len(your_string)
--> 13
Example 2: check for double character in a string python
count = {}
for s in check_string:
if s in count:
count[s] += 1
else:
count[s] = 1
for key in count:
if count[key] > 1:
print key, count[key]