ID EN
Collections

deque

Python 3.11

Returns a new deque object initialized left-to-right (using append()) with data from iterable. If iterable is not specified, the new deque is empty.

Syntax

PYTHON
class collections.deque([iterable[, maxlen]])

See Also

append() list ValueError IndexError IndexError IndexError ValueError