sentence = ""
counter = {}#Creates a dictionary to store characters and the number of times they show up
distinct = []#Creates list to store distinct characters
while sentence != "done!":#repeats code till user inputs done
    sentence = input("Enter a Sentence")#asks for user input
    for i in sentence:
        if i not in counter:
            counter[i] = 0#for every new letter, create a new entry in the dictionary and add it to the distinct list
            distinct.append(i)
        counter[i] += 1#add to entry of dictionary
for i in counter:
    print(i," : ",counter[i])#prints each entry of dictionary
print(sorted(distinct))#sorts distinct characters in alphabetical order and prints sorted list
f  :  11
d  :  11
j  :  6
   :  4
s  :  7
h  :  9
k  :  2
1  :  1
2  :  1
%  :  2
^  :  2
&  :  4
b  :  1
u  :  5
8  :  9
7  :  10
w  :  2
e  :  5
*  :  4
c  :  1
9  :  6
(  :  1
-  :  2
=  :  2
n  :  7
i  :  2
t  :  2
3  :  2
5  :  1
v  :  1
r  :  3
!  :  3
@  :  1
y  :  2
R  :  1
Y  :  1
H  :  1
C  :  1
]  :  1
o  :  1
[' ', '!', '%', '&', '(', '*', '-', '1', '2', '3', '5', '7', '8', '9', '=', '@', 'C', 'H', 'R', 'Y', ']', '^', 'b', 'c', 'd', 'e', 'f', 'h', 'i', 'j', 'k', 'n', 'o', 'r', 's', 't', 'u', 'v', 'w', 'y']