Input a sentence from the user and count each letter present in the string and store the alphabet and count in the dictionary. Also, print the alphabets in ascending order in terms of their count. If count is the same, print the letter in ascending order.
SAMPLE INPUT & OUTPUT :
Enter a sentence : DZZF AC
Z = 2
A = 1
C = 1
D = 1
F = 1
hey there.
I am a python expert and I am very interested in your project.
I am confident in all kinds of python project.
I am looking forward discussing with you.
Thank you
This can be implemented indifferent manners the simplest is to use loops for reading, grouping, counting and sorting the data. If you agree I can implement that task.