src/PyDS/Queue/Queue.py
def dequeue(self) -> Any:
        """Deletion at the front of the queue

        :return: A value at the front of queue
        :rtype: Any
        """
        if self.is_empty():
            raise Empty("Queue is empty")

        if 0 < self.__size < (self.__capacity // 4):
            self.__resize(capacity=self.__capacity // 2)

        value = self.__list[self.__front]
        self.__list[self.__front] = None
        self.__front = (self.__front + 1) % self.__capacity
        self.__size -= 1
        return value
Deletion at the front of the queue

        :return: A value at the front of queue
        :rtype: Any
        
Deletion at the front of the queue
Deletion at the front of the queue
def dequeue(self) -> Any:
        if self.is_empty():
            raise Empty("Queue is empty")
        if 0 < self.__size < (self.__capacity // 4):
            self.__resize(capacity=self.__capacity // 2)
        value = self.__list[self.__front]
        self.__list[self.__front] = None
        self.__front = (self.__front + 1) % self.__capacity
        self.__size -= 1
        return value
def dequeue ( self ) -> Any : if self . is_empty ( ) : raise Empty ( "Queue is empty" ) if 0 < self . __size < ( self . __capacity // 4 ) : self . __resize ( capacity = self . __capacity // 2 ) value = self . __list [ self . __front ] self . __list [ self . __front ] = None self . __front = ( self . __front + 1 ) % self . __capacity self . __size -= 1 return value
Deletion at the front of the queue
Deletion at the front of the queue
"""Deletion at the front of the queue

        :return: A value at the front of queue
        :rtype: Any
        """
A value at the front of queue
A value at the front of queue
Any
self