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

Method __str__

data_structures/queues/queue_on_pseudo_stack.py:11–13  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

9 self.length = 0
10
11 def __str__(self):
12 printed = "<" + str(self.stack)[1:-1] + ">"
13 return printed
14
15 """Enqueues {@code item}
16 @param item

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected