ID EN
Collections

clear

Python 3.11

Remove all elements from the deque leaving it with length 0.

Syntax

PYTHON
clear()