My issue
I have written correct not able to submit
My code
# Update your code below this line
a = int(input())
b = int(input())
sum = a + b
diff = a - b
print("Sum is:", sum)
print("Difference is :", diff)
Learning course: Learn Python
Problem Link: CodeChef: Practical coding for everyone
Here is small modification in your code
a = int(input())
b = int(input())
print("Sum is:", a+b)
print("Difference is:", a-b)
1 Like
Hi srimathy21
The code which you wrote contains a variable called ‘sum’ which is a predefined function in python used for addition. For example:- sum(a, b)
For defining the value of ‘a+b’ you may either name the variable something else or Sum.
1 Like