Created
February 2, 2015 01:51
-
-
Save kalda341/78a9648956433d90a8e8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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