What is the missing line?

>>> myDeque = deque('abc')
_____
>>> myDeque
deque(['x', 'a', 'b', 'c'])
>>> myDeque.appendleft('x')
>>> myDeque.append('x')
>>> myDeque.insert('x')
>>> myDeque.insertleft('x')

Respuesta :

Answer:

the missing line is myDeque.appendleft('x')

Explanation:

There's no such thing as insert or insertleft. There is however append and appendleft. You see how there was a 'x' on the final line and how that 'x' is on the left, its appendleft.