Exercise

Your first word cloud

We saw in the video that word clouds are very intuitive and a great and fast way to get a first impression on what a piece of text is talking about.

In this exercise, you will build your first word cloud. A string east_of_eden has been defined for you. It contains one of the first sentences of John Steinbeck's novel East of Eden. You can inspect its contents in the IPython Shell.

The matplotlib.pyplot package has been imported for you as plt.

Instructions 1/2

undefined XP
    1
    2
  • Import the required package to build a word cloud.
  • Generate a word cloud using the east_of_eden string. The background color has been specified as white.