Hi all,
currently I'm trying to get the ADDREV problem done, When I run it with PyCharm or on IdeOne, I don't get any compilation or runtime errors, however SPOJ returns NZEC. Could any of you possibly tell me why?
It might be a dumb question, however I'm only learning Python and thought that SPOJ is a good place to practice.

def reverse(value):
    result = 0
    while value > 0:
        result = result * 10 + (value % 10)
        value = value / 10
    return result

howManyLines = int(raw_input())
for i in range(howManyLines):
    var1, var2 = map(int, raw_input().split())
    print (reverse(reverse(var1)+reverse(var2)))