Exercise

Leveraging documentation

When writing code for Data Science, it's inevitable that you'll need to install and use someone else's code. You'll quickly learn that using someone else's code is much more pleasant when they use good software engineering practices. In particular, good documentation makes the right way to call a function obvious. In this exercise you'll use python's help() method to view a function's documentation so you can determine how to correctly call a new method.

The list words has been loaded in your session.

Instructions 1/2

undefined XP
    1
    2
  • View the documentation of the Counter.most_common method using the help() function. Note, you need to run the import statement before completing this step.