PYTHON CODING
- waclaw_koscielniak

- 4 hours ago
- 1 min read
from collections import deque
dq = deque([10, 21, 34, 46])
dq.append(57)
dq.appendleft(1)
print(dq[0], dq[-1])
[Running] python3 -u "/Users/name/test/test937.py"
1 57
[Done] exited with code=0 in 0.051 seconds
#Python #PythonCoding #VSC



Try to run to verify it.