src/PyDS/Stack.py
def pop(self) -> Any:
        """Deletes value from top of stack

        :return: A value from the top of the list
        :rtype: Any
        """
        if self.is_empty():
            raise Empty('Stack is empty')

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

        self.__size -= 1
        value = self.__list[self.__size]
        self.__list[self.__size] = None
        return value
Deletes value from top of stack

        :return: A value from the top of the list
        :rtype: Any
        
Deletes value from top of stack
Deletes value from top of stack
def pop(self) -> Any:
        if self.is_empty():
            raise Empty('Stack is empty')
        if 0 < self.__size < (self.__capacity // 4):
            self.__resize(capacity=self.__capacity // 2)
        self.__size -= 1
        value = self.__list[self.__size]
        self.__list[self.__size] = None
        return value
def pop ( self ) -> Any : if self . is_empty ( ) : raise Empty ( 'Stack is empty' ) if 0 < self . __size < ( self . __capacity // 4 ) : self . __resize ( capacity = self . __capacity // 2 ) self . __size -= 1 value = self . __list [ self . __size ] self . __list [ self . __size ] = None return value
Deletes value from top of stack
Deletes value from top of stack
"""Deletes value from top of stack

        :return: A value from the top of the list
        :rtype: Any
        """
A value from the top of the list
A value from the top of the list
Any
self