You are viewing a single comment's thread. Return to all comments →
Here is Python solution from my HackerrankPractice repository:
a, b = int(input()), int(input())
print((a + b), (a - b), (a * b), sep='\n')
Feel free to ask if you have any questions :)
this code returns o/p as:
if take i/p (3,2)
Please, check again. It returns correct output: 5, 1, 6
What does (sep ='\n') do?
(sep='\n') will display the outputs in new
It starts a new line after each number
seperate each answer by next line
then each answer will be separated by a comma
why this is not working
I believe you can run this only on Python 3.
sep='\n' (i want to know about this).