Hi for question 1, i am currently looping through the values to find the max value, and returning it. But how do i get the proper key to print?
How do you tell thonny which lettter comes first in the alphabet ?
You could create an empty list. Then, go through each item in the dictionary, append all the letters which have the same largest count. Then, use the sort method to make an alphabetized list of the letters and return the first element of the list.
I was stuck on this problem and this advice was very helpful! Thank you!!
how do i find the same largest count ?
You can find the algorithm to find Max on page 14 in this slides: https://moodle.augustana.edu/pluginfile.php/244972/mod_resource/content/0/Day08-Loops_More_IF_Max-Min.pdf
Actually a better way to do this is by going through each item in the dictionary by using .items() and finding the max value.
I think that you could access the dictionary and create a list with each letter in the dictionary and sort the list and then print the first letter in the list. I am not sure if that is the right way but it might be worth a shot????