• error on this task

 

I would like to give some feedback about ...

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

HTTP_USER_AGENT:

Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36

if i use this code snipet in other enviroment its works. checkio show me error about variable global n is not defined.

def checkio(data): def bucle(x): global n if len(x)==0: return else: n+=x[0] x.pop(0) loop(x) return n return bucle(data)

8