def StringCount(s):
    dictionary = {}

    for ch in s:
        if s[ch] = s[ch+1]:
            c = c + 1
        
        dictionary.append(ch, c)

    print(dictionary)

a = StringCount("Programming is fun")
print(a)