0
Can somebody help me understand pls
X = Input(2) Y = Input(4) Print(X + Y) How does it equal to 24? Can someone break this down step by step to help me understand?
1 Answer
+ 1
The variables taken as string and if you add a one string to another it is ofcourse a string. You should take the variables as integer values. Then, you can use summation as mathematically.
Try this:
x = int(input())
y = int(input())
print(x+y)
I hope, it helps.
Happy coding!