(self)
| 34 | |
| 35 | #pop |
| 36 | def pop(self): |
| 37 | if self.isEmpty(): |
| 38 | print("there is no element in the stack") |
| 39 | else: |
| 40 | nodeValue=self.LinkedList.head.value |
| 41 | self.LinkedList.head=self.LinkedList.head.next |
| 42 | return nodeValue |
| 43 | |
| 44 | # peek |
| 45 | def peek(self): |
no test coverage detected