class Queue2(object): def __init__(self): self.L=LinkedList() def Enqueue(self,key): self.L.PushBack(key) def Dequeue(self): return self.L.PopFront() def isEmpty(self): return self.L.isEmpty()