MulaiMulai sekarang secara gratis

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.

Latihan ini adalah bagian dari kursus

Software Engineering Principles in Python

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

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

# View the documentation for Counter.most_common
____(Counter.most_common)
Edit dan Jalankan Kode