Python tutorial #3 || Python: Division - HackerRank solution

Published: 29 May 2021
on channel: LearnIT
2,940
35

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 - Hac...  

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


On this page of the site you can watch the video online Python tutorial #3 || Python: Division - HackerRank solution with a duration of hours minute second in good quality, which was uploaded by the user LearnIT 29 May 2021, share the link with friends and acquaintances, this video has already been watched 2,940 times on youtube and it was liked by 35 viewers. Enjoy your viewing!