I have this newbie problem in my python program which is given below , I tried my best to solve it. but I can't solve it by my own, can you guys help me here is my code.
import pymongo
client = pymongo.MongoClient('mongodb://127.0.0.1:27017/')
db = client('Employee')
information = db.employeeinfo
records = {
"fname": "Dhruvin",
"lname": "Prajapati",
"role": "Developer"
}
information.insert_one(records)