Python tutorial #3 || Python: Division - HackerRank solution
In this video we are going to learn python Division both integer division and float division statement, by solving HackerRank problem (Python Division).
This series helps you to get python certificate on hackerrank, which adds weight to your resume and helps to get placed in a good company
Python tutorial #2 || Python IF-ELSE - HackerRank solution :-
• Python tutorial #2 || Python IF-ELSE ...
Problem link :-
https://www.hackerrank.com/challenges...
HackerRank Question:-
The provided code stub reads two integers, and , from STDIN.
Add logic to print two lines. The first line should contain the result of integer division, a//b . The second line should contain the result of float division, a/b .
Example
The result of the integer division .
The result of the float division is .
Print:
0
0.6
Input Format
The first line contains the first integer, .
The second line contains the second integer, .
Output Format
Print the two lines as described above.
Sample Input 0
4
3
Sample Output 0
1
1.33333333333
#python
#hackerrank
#tutorial
#learnIT
#pythonforbeginners
#hackerranksolutions