My issue
my skill and solution given have same logic yet mine get cancelled
My code
# Update your code below this line
a = int(input())
b = int(input())
sum=a+b
diff=a-b
print(sum)
print(diff)
Learning course: Learn Python
Problem Link: CodeChef: Practical coding for everyone
Sum is a keyword in python you need to change the name where you were storing the data.
example: add=a+b
a = int(input())
b = int(input())
add=a+b
if(a>b)://you can also check which is greater and save that in your diff
diff=a-b
else:
diff=b-a
print(“Sum is:”,add)
print(“Difference is:”,diff)
@shubhojitdey78
U have to write the printing statement too .
like Sum is : or Difference is : , in the exact same way as given in the question .