Python divmod() Function
Definition and Usage
The divmod() function returns a tuple containing the quotient and remainder when parameter 1 is divided by parameter 2.
Syntax
divmod(dividend, divisor)
Parameter Value
Parameter | Description |
---|---|
dividend | Number. Dividend. |
divisor | Number. Divisor. |