Mod Divmod - Python Math Solution. The following shows how to solve the HackerRank Mod Divmod Python Math problem.
Code:
a = int( input() )
b = int( input() )
print(a//b)
print(a%b)
print( divmod(a, b) )
Test Input:
177
10
Test Output:
17
7
(17, 7)