MCPcopy
hub / github.com/ndleah/python-mini-project / pop

Method pop

Stack_structure/main.py:21–28  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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: ")

Callers 7

convert_to_postfixFunction · 0.45
calculate_postfixFunction · 0.45
Matchmaker.pyFile · 0.45
logoutFunction · 0.45
undoMoveMethod · 0.45
main.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected