{"id":24807,"date":"2021-11-02T09:48:02","date_gmt":"2021-11-02T04:18:02","guid":{"rendered":"https:\/\/python-programs.com\/?p=24807"},"modified":"2021-11-05T20:36:45","modified_gmt":"2021-11-05T15:06:45","slug":"python-divmod-method-with-examples","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-divmod-method-with-examples\/","title":{"rendered":"Python divmod() Method with Examples"},"content":{"rendered":"

In the previous article, we have discussed Python int() Method with Examples<\/a>
\ndivmod() Method in Python:<\/strong><\/p>\n

When argument1 (dividend) is divided by argument2, the divmod() function returns a tuple containing the quotient and the remainder (divisor).<\/p>\n

Syntax:<\/strong><\/p>\n

divmod(dividend, divisor)<\/pre>\n

Parameter Values:<\/strong><\/p>\n

dividend:<\/strong> It is a number. The number by which you wish to divide<\/p>\n

divisor:<\/strong> It is a number. The number you wish to divide by.<\/p>\n

Return Value:<\/strong><\/p>\n

The divmod() Function returns<\/p>\n