Open this example in the interactive library
Source code
print(divmod(3671, 60))Sample output
(61, 11)

Use quotient and remainder. A self-contained example using the Python standard library.
Open this example in the interactive library
print(divmod(3671, 60))(61, 11)