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.
Diese Übung ist Teil des Kurses
Software Engineering Principles in Python
Interaktive Übung
Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.
# load the Counter function into our environment
from collections import Counter
# View the documentation for Counter.most_common
____(Counter.most_common)