MulaiMulai sekarang secara gratis

Putting your package to work

Now you have wrapped your word-counting function into a package, you can reuse it easily in other projects.

In the initial script, you were analyzing the book Alice in Wonderland. In this new project, you will use the same function to analyze hotel reviews from TripAdvisor.

The count_words() function has been imported for you at the top of this script. We'll talk more about importing from your packages in a later lesson.

Latihan ini adalah bagian dari kursus

Developing Python Packages

Lihat Kursus

Latihan interaktif praktis

Ubah teori menjadi tindakan dengan salah satu latihan interaktif kami.

Mulai berolahraga