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 ?

+3 votes

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.

+1

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