Divmode() method in Python Built in Function
Divmode method in built in function returns the remainder and quotient when one argument is divided by the second argument.
Syntax:
divmode(a,b)
Parameter
- Divmode has two parameters.
- Both the parameters are non-complex numbers. One is numerator while the other one is denominator.
Example-1:
Divmode using intergers
x = divmod(10, 2) print(x)
Output:
Example-2:
Divmode using floating numbers
x = divmod(10.8, 2) print(x)
Output:
