One of the built-in functions of Python is divmod, which takes two arguments a and b and returns a tuple containing the quotient of a/b first and then the remainder a. Read in two integers, a and b, ...
When programming, there are surprisingly many situations where you want to know not only the "answer (quotient)" of a division but also the "remainder (modulus)" at the same time. "How many minutes ...
It might have to do with Python 3 removing the classic int type and moving all int operations to longs. If you compare Python2's Objects/intobject.c's i_divmod() function to Python3's ...