Get startedGet started for free

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.

This exercise is part of the course

Software Engineering Principles in Python

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# load the Counter function into our environment
from collections import Counter

# View the documentation for Counter.most_common
____(Counter.most_common)
Edit and Run Code