Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # deque.py
- from collections import deque
- my_deque = deque(maxlen=2)
- my_deque.append(1)
- my_deque.append(2)
- my_deque.append(3)
- print(list(my_deque)) # Output: [2, 3]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement