I'm starting to learn Python on my own and I have the simplest exercise in the world wrong... It consists of passing two numbers on the keyboard and displaying their sum, this is the code I have:
a = input()
b = input()
c = a + b
print(c)
The problem is that it shows me one number next to the other.
The input command returns what the user entered as a string. When you do the addition, you are adding strings, not numbers. When you do "1"+"2" in Python, the result will be "12", since you are concatenating "1" and "2". To make them numbers, you have to convert what the user entered into numbers.
I recommend that when you ask for the data you tell it that it is of type int and then if you do the normal operation a + b