Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
i dont rly get what doesn wynik change solution in Clear category for Restricted Sum by Adrian_W
wynik=0
def add(data):
global wynik
help=data.pop()
print("wynik = ",wynik,' + ',help)
wynik+=help
print("wynik: ", wynik)
if len(data)>0:
add(data)
else:
return wynik
def checkio(data):
global wynik
wynik=0
add(data)
return wynik
print(checkio([1,2,3]))
Oct. 13, 2016