ARTICLE AD BOX
I am a beginner learning Python.
When I try to add two numbers taken from input(), I get this error:
a = input("Enter number: ")
b = input("Enter number: ")
print(a + b)
Instead of adding them, Python joins them as strings (like “10” + “20” → “1020”).
How can I fix this and correctly add the numbers?
