im getting correct result in my PC but here not why ????def reverse(n): rev=0 while(n>0): rem=n%10 rev=rev*10+rem n=n/10 return revdef sum (a,b): return a+b
x,y=raw_input().split()
print(reverse(reverse(int(x))+reverse(int(y))))
Please edit your post and fomat the code correctly. Python needs correct indentation.
The code you posted will read only one line and run into an error because there is just one number in the first line of input.