Name

divmod

Synopsis

divmod(dividend,divisor)

Divides two numbers and returns a pair whose items are the quotient and remainder. See also __divmod__ in Chapter 5.

Get Python in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.