Write two Python functions quotient () and remainder () which takes two numbers a and b as parameters such that:
• The function quotient () return the quotient q of the Euclidean division of a by b (without using the operator '//’)
q, r = divmod(10, 3)
print("Quotient: ", q)
print("Remainder: ", r)
Comments
Leave a comment