MulaiMulai sekarang secara gratis

Count it out!

Write code to answer the following question: How many comedy movies are in the movies collection?

The mov has been initialized with the MongoDB movies collection object.

Tip: To refresh your memory on all available fields in the movies collection, you can run mov.find_one(); this will print out the first document in the collection.

Latihan ini adalah bagian dari kursus

Introduction to MongoDB in Python

Lihat Kursus

Latihan interaktif praktis

Ubah teori menjadi tindakan dengan salah satu latihan interaktif kami.

Mulai berolahraga