(self)
| 19 | self.top = new_node |
| 20 | |
| 21 | def pop(self): |
| 22 | # If there is no data in the top node, we return |
| 23 | if self.top == None: |
| 24 | print ("There is no item on the stack to unstack") |
| 25 | return |
| 26 | |
| 27 | print(f"Unstack {self.top.data}") |
| 28 | self.top = self.top.next |
| 29 | |
| 30 | def printData(self): |
| 31 | print("Printing stack: ") |
no outgoing calls
no test coverage detected