I’m new to MongoDB and programming overall. I’m trying to return information about the MongoDB server by following the guide from this webpage https://www.mongodb.com/blog/post/getting-started-with-python-and-mongodb . After running my py. file (below a screenshot attached), I get errors -
mongodb+srv://user:email@example.com/dbname?retryWrites=true&w=majority - that is my connection string and I wanted to clarify what what password I have to put in. I assume the one that I generated from database user, right?:
For ‘‘dbname’’ name i use ‘dbCars’ a newly created database like shown on the screeshot below
Correct me if I put the wrong data in my connection string and please advise why the code im running doesn’t provide the outcome as from the webpage link…
Appreciate your help much.