You are viewing a single comment's thread. Return to all comments →
Here is Python 3 solution from my HackerrankPractice repository:
a, b = int(input()), int(input())
print(a // b, a / b, sep='\n')
Feel free to ask if you have any questions :)
I did write my code like this. but it did'nt work.
So I had to print as seperate.
why this sep keyword use...
"sep" means separator.
In this case sep='\n' means that two numbers are separated by end of line character. In other words, second number will be printed on a new line
seperate does not work in case of a integer
I dont think that is correct. However, sep does not work in Python 2
This is a Python 3 solytion. You need to check "Python 3" in this box:
Print does not have a sep argument in Python 2.
how we will get can you explain