How would you extract items 3..6 efficiently, elegantly and pythonically from the following deque without altering it:
deque
from collections import d
I would prefer this, it's shorter so easier to read:
output = list(q)[3:6+1]