0

Taking input of two integers in a single line separated by space

Hello! Please help me with the below problem in python. I can write the code using two input statements. But the problem requires that the first line of code contains two numbers separated by spaces. Thanks Input Format: The first line of the input contains two numbers separated by a space. Output Format: Print the difference in single line Example: Input: 4 2 Output: 2 Explanation: Since the difference of numbers 4 and 2 is 2, hence the output is 2. code- https://code.sololearn.com/cv7d5HHPOMCg/?ref=app

13th Feb 2019, 7:25 PM
Nilutpol Kashyap
Nilutpol Kashyap - avatar
3 odpowiedzi
+ 1
See what I wrote in your other post. Give it a try and show us the result!
13th Feb 2019, 7:40 PM
HonFu
HonFu - avatar
+ 1
I have uploaded the code.
13th Feb 2019, 7:42 PM
Nilutpol Kashyap
Nilutpol Kashyap - avatar