Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@AbstractBeliefs
Created July 30, 2018 22:28
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 AbstractBeliefs/1a354b9a5bcd3ca4a4a1acdd5ec6ba84 to your computer and use it in GitHub Desktop.
Save AbstractBeliefs/1a354b9a5bcd3ca4a4a1acdd5ec6ba84 to your computer and use it in GitHub Desktop.
def sum(sequence):
accumulator = 0
for element in sequence:
accumulator += element
return accumulator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment