ARTICLE AD BOX
a = input("Enter first number: ")
b = input("Enter second number: ")
print(a + b)
New contributor
jasmeet is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
1

The '+' operator applied to two strings is string concatenation and not arithmetic addition. Cast each string to an integer: print((int(a) + int(b)).
Booboo
– Booboo
2025-11-27 18:58:17 +00:00
Commented 1 min ago