• the following code works in my editor

Question related to mission Restricted Sum

 

I would like to give some feedback about ...

From: http://www.checkio.org/mission/restricted-sum/solve/

HTTP_USER_AGENT:

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36

My Code:

def add(var):
    add.val += var

def checkio(data):
    add.val = 0
    map(add,data)
    return add.val
8