divmod() returns quotient, remainder as a tuple : divmod « Buildin Function « Python Tutorial






print divmod(10,3)
print divmod(3,10)
print divmod(10,2.5)
print divmod(2.5,10)
13.13.divmod
13.13.1.divmod() returns quotient, remainder as a tuple