I'm importing a .txt list of words into a dictionary and print, "The word seen most was XXXX and it was seen X times." I can import the .txt list into a dictionary and sorted my dictionary by value so my most seen word is at the end of the list, but now I'm stuck. How do I print the last item in a dictionary without knowing what space it is at? Can I do something like print dict.values(max)?
Thanks!