(self)
| 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 | |
| 94 | n = DoublyLinkedList() |
| 95 | n.addFront(23) |
no test coverage detected