Do you want to know the information about “python divmod”. If yes, you’re in the correct tutorial.
a = 6 b = 4 # a // b = 1 # a % b = 2 print(divmod(a,b)) >> (1, 2) # tuple print(*divmod(a,b)) >> "1 2"
div, remainder = divmod(numerator, denominator)
I hope this article helps you to know about “python divmod”. If you have any queries regarding this post please let us know via the comment section. Share this tutorial with your friends and family via social networks.