Definition
The divmod() function returns a tuple containing the quotient and the remainder when dividend is divided by divisor.
Syntax
divmod(dividend, divisor)
Parameters
Parameter | Description |
---|---|
dividend | A Number |
divisor | A Number |
Example:
result = divmod(19, 3)
print(result)