src/PyDS/Stack.py
def top(self) -> Any:
        """Grab top value of stack without deletion

        :return: A value from the top of the list
        :rtype: Any
        """
        if self.is_empty():
            raise Empty('Stack is empty')
        return self.__list[self.__size - 1]
Grab top value of stack without deletion

        :return: A value from the top of the list
        :rtype: Any
        
Grab top value of stack without deletion
Grab top value of stack without deletion
def top(self) -> Any:
        if self.is_empty():
            raise Empty('Stack is empty')
        return self.__list[self.__size - 1]
def top ( self ) -> Any : if self . is_empty ( ) : raise Empty ( 'Stack is empty' ) return self . __list [ self . __size - 1 ]
Grab top value of stack without deletion
Grab top value of stack without deletion
"""Grab top value of stack without deletion

        :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