<reponame>NirmalSilwal/Python-<gh_stars>10-100
import pymongo

connection = pymongo.MongoClient("localhost", 27017)

database = connection['mydb_01']

collection = database['mycol_01']

data = {'Name' : "Akshay"}

collection.insert_one(data)
import pymongo

connection = pymongo.MongoClient("localhost", 27017)

database = connection['mydb_01']

collection = database['mycol_01']

data = {'Name' : "Akshay"}

collection.insert_one(data)