Question #278604

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 '//’) 

• The function remainder () return the Euclidean division of a by b (without using the operator '%')


Expert's answer

qr = divmod(103)
print("Quotient: ", q)
print("Remainder: ", r)
LATEST TUTORIALS
APPROVED BY CLIENTS