Skip to content

Instantly share code, notes, and snippets.

@theelous3
Last active March 10, 2021 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theelous3/8099a82c587785d04ff1fab5c0b23b19 to your computer and use it in GitHub Desktop.
Save theelous3/8099a82c587785d04ff1fab5c0b23b19 to your computer and use it in GitHub Desktop.
k=lambda xs:sum([int(z)for y in[str(x*2)for x in[int(d) for d in xs[::-1]][1::2]]for z in y]+[int(d)for d in xs[::-1]][::2])%10==0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment