def front(): a2_pgm1.transfer(s,t) ele = t.peek() a2_pgm1.transfer(t,s) return ele
def deque(): if not s.isempty(): a2_pgm1.transfer(s,t) ele = t.pop() a2_pgm1.transfer(t,s) return ele
def enqueAtFront(key): if not s.isfull(): a2_pgm1.transfer(s,t) t.push(key) a2_pgm1.transfer(t,s)