Skip to content

Instantly share code, notes, and snippets.

@pharshal
Last active August 29, 2015 14:20
Show Gist options
  • Save pharshal/3128658c6621caf61b13 to your computer and use it in GitHub Desktop.
Save pharshal/3128658c6621caf61b13 to your computer and use it in GitHub Desktop.
def sum(list):
m = 0
g = 0
while(g < len(list)):
m = m + list[g]
g = g + 1
return m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment