Skip to content

Instantly share code, notes, and snippets.

@leeavital
Created February 4, 2014 05:14
Show Gist options
  • Save leeavital/8798482 to your computer and use it in GitHub Desktop.
Save leeavital/8798482 to your computer and use it in GitHub Desktop.
Sum and mod
z = raw_input()
z = reduce(lambda x,y:x+y,[ord(x) for x in z])
print z%3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment