Sorted alphabetically, but dictionary order (note key=str.lower() in sorted [wfc-2a.py]
Sorted by frequency (treat lambda x: x[1] as an idiom to reference the value of the dictionary entry, not the key—to go from highest to lowest, replace x[1] with -x[1]) [wfc-3.py]
Sorted by frequency first, then alphabetically—note use of function alphafreq(x); you can use any function here, and the parameter is the item [wfc-4.py]
Sorting the dictionary
sorted sorts based on keys
Files
What is a file?
What can you do with it? (For example, read, write, append)
Types of files (text, binary)
File Input and Output for text files
Opening and closing: open(filename, mode), close()