for i in My_string: string_count = My_string.count(i) # count characters of string print(f'{i}: {string_count}')