• run on my local machine well but got error here

 

I would like to give some feedback about ...

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

HTTP_USER_AGENT:

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36

my program is as follows:

s = 0

def add(num):
    global s
    s = s + num
    return s

def checkio(data):
    map(add, data)
    global s
    return s

when input [2,2,2,2,2,2], it works well on my local machine(pycharm IDE with python 2.7). but here it said I got 18 rather 12. I want to know what happened here. Thanks for your help.

11