divmod()

A Python built-in function that divides two numbers and returns both the whole-number quotient and the remainder.

In more detail

divmod(38, 8) returns (4, 6). The course uses it to split a syslog priority into its facility (the quotient) and severity (the remainder) in one step.

Related terms

Taught in

References