dict = {}
count = 0
n = len(s)

for i in range(0, n + 1, 1):
    for j in range(0, i + 1, 1):
        if s[i] == s[j]:
            count ++
            dict.append(s[i]:count)
        else:
            count = 1
            dict.append(s[i]:count)

print(dict)