Python MongoDB Insert Document

In MongoDB, To insert a record, or document into a collection, we use the insert_one() method.

Code :