MCPcopy Create free account
hub / github.com/subbarayudu-j/TheAlgorithms-Python / __str__

Method __str__

data_structures/stacks/stack.py:22–23  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

20 return bool(self.stack)
21
22 def __str__(self):
23 return str(self.stack)
24
25 def push(self, data):
26 """ Push an element to the top of the stack."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected