August 2020
Beginner to intermediate
653 pages
16h 55m
English
Now that you understand the basics, it’s time to move on to more exciting challenges. Let’s write a real program—something nontrivial but still simple enough to master this early in the book. Your task is to write a program that reads words and counts the frequency of each unique word. For the sake of simplicity, a word is a string of nonspace characters separated by white space. Be aware, however, that, by this definition, words end up including punctuation characters, but we’ll worry about fixing that problem later.