LogiQuest
Back to Modules and Packages
15

What is the output of the following code?

from collections import deque
d = deque([1, 2, 3])
d.appendleft(0)
d.pop()
print(list(d))
Easy

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.