136,678 views
6 votes
6 votes
What is the missing line?

>>> myDeque = deque('dog')
_____
>>> myDeque
deque(['d', 'o', 'g', 'cat'])

>>> myDeque.insert('cat')
>>> myDeque.insert('cat')

>>> myDeque.appendleft('cat')
>>> myDeque.appendleft('cat')

>>> myDeque.append('cat')
>>> myDeque.append('cat')

>>> myDeque.appendright('cat')
>>> myDeque.appendright('cat')

User Joris Groosman
by
2.9k points

1 Answer

11 votes
11 votes

Answer:

i think myDeque.append('cat')

User Fdfrye
by
2.9k points