def char_count(s):
    dict1 = {}   # Empty dictionary

    for i in s:   # Iterate through string
        if i not in dict1:   # Check presence of character
            dict1.add(i)   # Add i as key of dictionary
            i.value = s.count(i)   # Count the occurrences of i and add it as value of item

    return dict1   # Return dictionary

    for i, j in dict1.items():
        return f"{i} : {j}"   # Print all items