Why am I getting “TypeError: unsupported operand type(s)” in Python?

1 week ago 12
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?

Read Entire Article