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

Method __init__

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

Source from the content-addressed store, hash-verified

5
6class Queue:
7 def __init__(self):
8 self.stack = []
9 self.length = 0
10
11 def __str__(self):
12 printed = "<" + str(self.stack)[1:-1] + ">"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected