

def enqueue(self, item):
    if (self.front is None):
        new_node = QueueNode(item)
        self.front = new_node
        self.back = new_node
    else:
        new_back = QueueNode(item)
        self.back.next = new_back
        self.back = new_back
    self.size += 1

dataset/ETHPy150Open QuantumFractal/Data-Structure-Zoo/6-Queue/queue.py Queue.enqueue/original