divmod() returns quotient, remainder as a tuple : Divmod : Buildin Function PYTHON TUTORIALS


PYTHON TUTORIALS » Buildin Function » Divmod »

 

divmod() returns quotient, remainder as a tuple


print divmod(10,3)
print divmod(3,10)
print divmod(10,2.5)
print divmod(2.5,10)



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Buildin Function
» Divmod