Python MongoDB Create Database

To create a database in MongoDB, create MongoClient object, then specify a connection URL and database name.

Code :