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

Connected

अभ्यास

Connecting to a MongoDB server

To get started you need to connect to a MongoDB server from inside Python. The pymongo package provides the MongoClient for this.

निर्देश

100 XP
  • From the pymongo package, import MongoClient so you can use it.
  • Create a MongoClient instance and store it in a variable client.