Assignments for Today

Final Project: Word Cloud

  • Download the starter code from the website
  • Find your favorite book on Project Gutenberg and download the .txt file
  • Upload the file in
  • Follow the instructions in the starter code to import the book
  • Put all of the words in the book into a list
  • Remove all of the common_words from the list
    • Hint: Convert the word to lowercase before comparing
  • Create a dictionary and loop through the list to count the frequency of the word
    • Assign the word as a key and the value 1
  • If the word has already been assigned as a key, increment the value by 1
  • Run your code to create a word cloud. Save your word cloud until Sunday and we will try to guess what book it is.