Skip to content
Quiz · Final project · lesson 2 of 8

Quiz — pop and popleft

What does the program print?

Python
from collections import deque

stack = [1, 2, 3]
queue = deque([1, 2, 3])
print(stack.pop(), queue.popleft())

Subscribe to take the course

The course is free. Sign in with Telegram and subscribe to the channel to open every lesson.

Sign in another way