Personal tools

Difference between revisions of "Python Game/01/VeXocide"

From Eth0Wiki

Jump to: navigation, search
(New page: def run(n): # Step 1, 2 and 3: return 0==sum(sum(divmod(int(n[-1-x])*(x%2+1),10)) for x in range(len(n)))%10)
 
(No difference)

Latest revision as of 08:38, 10 July 2008

def run(n):
    # Step 1, 2 and 3:
    return 0==sum(sum(divmod(int(n[-1-x])*(x%2+1),10)) for x in range(len(n)))%10