I 'm trying to make it in python, classstacka2_deque():def__init__(self): self.myDeque=[] self.stack1=[] self.stack2=[]defpush_right(self, x): self.myDeque.append(x)defpush_left(self, x): self.myDeque.insert(0,x)defpop_right(self):returnself.stack1.append(self.myDeque.pop())defpop_left(self):returnself.stack2.append(self.myDeque.pop(0))

this is all:

Two stacks with a deque. Implement two stacks with a single deque so that each

operation takes a constant number of deque operations.

I don't understand what it wants too!!!!