MCPcopy Index your code
hub / github.com/BeeBombshell/Python-DSA / display

Method display

DSA/DoublyLinkedList.py:83–92  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

81
82 #method to display the doubly linked list
83 def display(self):
84 temp = self.head
85 if self.isEmpty():
86 print("List is Empty")
87 return
88 print("head -> ", end = " ")
89 while (temp.next != None):
90 print(temp.data, end = " < -- > ")
91 temp = temp.next
92 print(temp.data, " <- tail")
93
94n = DoublyLinkedList()
95n.addFront(23)

Callers 1

Calls 1

isEmptyMethod · 0.95

Tested by

no test coverage detected