divmod() function: What will the output of divmod(50, 7) be?

1
7
1, 7
7, 1

divmod(m, n) returns the quotient and remainder when m is divided by n. Hence, when 50 is divided by 7, we get 7 as the quotient and 1 as the remainder.

Comments