1. सीखें
  2. /
  3. पाठ्यक्रम
  4. /
  5. Introduction to MongoDB in Python

Connected

अभ्यास

The $exists operator

Take a moment and run list(mov.find()): you'll find that some movies have a box_office field while others do not. Let's get a better understanding of the situation.

निर्देश

100 XP
  • Find all the documents where the box_office field exists and store the resulting cursor object as box_curs.
  • Turn the cursor object into a Python list and store it as box.