MCPcopy
hub / github.com/jwasham/practice-python / __str__

Method __str__

linked_lists/linked_list.py:19–25  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

17 return count
18
19 def __str__(self):
20 current = self.head_
21 output = ""
22 while current:
23 output += str(current) + " -> "
24 current = current.get_next()
25 return output
26
27 # Pops an item from the front of the list
28 def pop(self):

Callers

nothing calls this directly

Calls 1

get_nextMethod · 0.80

Tested by

no test coverage detected