Created
July 30, 2018 22:28
-
-
Save AbstractBeliefs/1a354b9a5bcd3ca4a4a1acdd5ec6ba84 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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