LearnPy Hub
← Tuples & Sets problems
Easy

Quotient and Remainder

Read a and b and print the tuple returned by divmod(a, b).

Input

Two integers (b ≠ 0).

Output

A tuple.

Sample 1

Input
17
5
Output
(3, 2)

Sample 2

Input
20
4
Output
(5, 0)
solution.py
Output appears here
Quotient and Remainder · Python practice problem · LearnPy Hub