Skip to content

Instantly share code, notes, and snippets.

@kalda341
Created February 2, 2015 01:51
Show Gist options
  • Save kalda341/78a9648956433d90a8e8 to your computer and use it in GitHub Desktop.
Save kalda341/78a9648956433d90a8e8 to your computer and use it in GitHub Desktop.
def find_sum(self):
current = self.head
total = 0
while current != None:
total += current.get_data()
current = current.get_next()
return total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment