Quiz on Python divmod Function



1. What does the divmod() function in Python return?
2. What is the syntax for the divmod() function?
3. What will be the output of divmod(10, 3)?
4. Can the divmod() function work with negative numbers?
5. Which built-in Python function can be used similarly to divmod() to obtain only the quotient?

Advertisements