Dequeis_emptyOn this pageDeque.is_emptyChecks if there are elements in the queueUsageis_empty()Returns: Boolean Returns True if there are 0 elements in the queue Examplefrom jellybeans.structures import Dequeq = Deque()q.enqueue(20)q.dequeue()print(q.is_empty()) # True