I'm new to Python and I had a question when I solved Exercise 1001 of Uri Online (read A and B, assign sum to X and print), when writing the following code, I received concatenation:
a = input()
b = input()
x = a + b
print ("x = ", x)
When exchanging input () for int (input ()) on each of the variables, I get the sum. From what I understand, if I do not declare anything in the input, by default the received type will be a string. I'm accustomed to Java, where it's always necessary to declare the type of the variable. I would like you to explain to me how Python typing works.