Personal tools

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

From Eth0Wiki

Jump to: navigation, search
(New page: def run(a): return 0==sum(sum(divmod(int(y)*(x%2+1),10)) for x,y in enumerate(a[::-1]))%10)
 
(No difference)

Latest revision as of 08:38, 10 July 2008

def run(a):
  return 0==sum(sum(divmod(int(y)*(x%2+1),10))
               for
               x,y
               in
               enumerate(a[::-1]))%10