True or False: You can only pop from a queue in Python
False - all queues are double ended queues (deque) by default
What is the package we have to import to initialize a deque in Python?
from collections import deque
How would we add a value to a deque?
queue.append(1)
How would we pop from the left side of a queue in Python?
queue.popleft()
How would we add a value to the left side of a deque in Python?
queue.appendleft(1)
How can we get the last value from a deque in Python?
queue.pop()