What is the result of `divmod(17, 5)`?

Python Professional Hard

Python Professional — Hard

What is the result of `divmod(17, 5)`?

Key points

  • `divmod()` returns a tuple with two values.
  • The first value is the quotient and the second value is the remainder.
  • In this case, 17 divided by 5 gives a quotient of 3 and a remainder of 2.

Ready to go further?

Related questions