(self, value)
| 33 | |
| 34 | # Returns true if list contains the given value. |
| 35 | def contains(self, value): |
| 36 | found = False |
| 37 | current = self.head_ |
| 38 | while current and not found: |
| 39 | if current.get_data() == value: |
| 40 | found = True |
| 41 | else: |
| 42 | current = current.get_next() |
| 43 | return found |
| 44 | |
| 45 | # Deletes all instances of given value in list. |
| 46 | def delete(self, value): |