Python MongoDB Limit

To limit the result in MongoDB, we use the limit() method. The limit() method specifies the number of documents to be returned.

Code :