variabel temp python

c = input(" ")
temp = {}
output = " "
for x in c:
    if x in temp:
        temp[x] = temp[x] + 1
    else:
        temp[x] = 1
for key, value in temp.items():
    output += str(value) + str(key)
print(output)
Zealous Zebra