Raymond Hettinger added the comment:
In Python 3.1, the input() function always returns a string. In your
case, the string is "21". Adding two strings together gives you a
longer string: "12" + "34" --> "1234".
To get your program to do what you want, convert the string to a number
using int
New submission from Mayuresh :
I am getting error of sum of two nos. the output should give addition
of two numbers,but instead it is displaying 2 nos. side-by-side.I have
pasted the program and output for the same.
print "Please give a number: "
a = input()
print "And another: "
b = input()
p