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?

20th Sep 2021, 2:31 PM
MeE
1 Antwort
+ 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!
20th Sep 2021, 2:47 PM
mesarthim
mesarthim - avatar