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

Method __str__

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

Source from the content-addressed store, hash-verified

30 return bool(self.stack)
31
32 def __str__(self) -> str:
33 return str(self.stack)
34
35 def push(self, data: T) -> None:
36 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected