Python MongoDB Create Collection

A collection in MongoDB is the same as a table in Mysql. To create a collection use database object and specify the name of the collection.

Code :