<filename>module_5/mongodb_connect.py
import pymongo
from pymongo import MongoClient
url = "mongodb+srv://admin:admin@cluster0.52yzh.mongodb.net/pytech?retryWrites=true&w=majority"
client = MongoClient(url)
db = client.pytech
print(db.list_collection_names())


<filename>module_5/mongodb_connect.py
import pymongo
from pymongo import MongoClient
url = "mongodb+srv://admin:admin@cluster0.52yzh.mongodb.net/pytech?retryWrites=true&w=majority"
client = MongoClient(url)
db = client.pytech
print(db.list_collection_names())

