In this HackerRank python division problem solution set, we need to develop a python program that can read two integers a and b. then we need to print the integer and floating division on the output screen.

HackerRank Python : Division problem solution

Problem solution in Python 2 programming.

a = int(raw_input())
b = int(raw_input())
print a/b
print a/float(b)

Problem solution in Python 3 programming.

if __name__ == '__main__':
    a = int(input())
    b = int(input())

Problem solution in pypy programming.

import sys
alls = []
for line in sys.stdin:
print alls[0]/alls[1]
print float(alls[0])/float(alls[1])

Problem solution in pypy3 programming.

# Enter your code here. Read input from STDIN. Print output to STDOUT
num = int(input())
den = int(input())