str1=str(input('Enter a String '))
dict = {}
for i in str1 :
    keys=dict.keys()
    #print(keys)
    if i in keys :
        dict[i]+=1
    elif i ==' ' :
        #dict[i]=''
        pass
    else :
        dict[i]=1
for key, value in dict.items():
    print(key, value)

7ec56c9a801749f71e1eeea45540efc54d8c348e
<mask token>

<mask token>
for i in str1:
    keys = dict.keys()
    if i in keys:
        dict[i] += 1
    elif i == ' ':
        pass
    else:
        dict[i] = 1
for key, value in dict.items():
    print(key, value)

str1 = str(input('Enter a String '))
dict = {}
for i in str1:
    keys = dict.keys()
    if i in keys:
        dict[i] += 1
    elif i == ' ':
        pass
    else:
        dict[i] = 1
for key, value in dict.items():
    print(key, value)

str1=str(input('Enter a String '))
dict = {}
for i in str1 :
    keys=dict.keys()
    #print(keys)
    if i in keys :
        dict[i]+=1
    elif i ==' ' :
        #dict[i]=''
        pass
    else :
        dict[i]=1
for key, value in dict.items():
    print(key, value)
