Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def find_sum(self):
- current = self.head
- total = 0
- while current != None:
- total += current.get_data()
- current = current.get_next()
- return total
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement