MCPcopy Create free account
hub / github.com/geekcomputers/Python / __str__

Method __str__

Add_two_Linked_List.py:42–47  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

40 temp.next = Node(carry)
41
42 def __str__(self):
43 temp = self.head
44 while temp:
45 print(temp.data, "->", end=" ")
46 temp = temp.next
47 return "None"
48
49
50if __name__ == "__main__":

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected