string = "hello sachin hello "
string = string.lower()
myset = set(string)
for i in myset:
    num = string.count(i)
    if num > 1:
        print("Number of times " + i + " appears is {}" .format(num))
2bea3c00666dc45107861db3a974d66177997d9f
<mask token>

<mask token>
for i in myset:
    num = string.count(i)
    if num > 1:
        print('Number of times ' + i + ' appears is {}'.format(num))

string = 'hello sachin hello '
string = string.lower()
myset = set(string)
for i in myset:
    num = string.count(i)
    if num > 1:
        print('Number of times ' + i + ' appears is {}'.format(num))

string = "hello sachin hello "
string = string.lower()
myset = set(string)
for i in myset:
    num = string.count(i)
    if num > 1:
        print("Number of times " + i + " appears is {}" .format(num))