LinkedList.py
def add(self, content):
        """Adds a node to the linked list

        Args:
            content (Any): the content to add to the linked list
        """
        node = Node(content, self.size)

        if self._start_node == None:
            self._start_node = node
            self._last_node = self._start_node

        else:
            node.set_parent(self._last_node)
            self._last_node.set_child(node)
            self._last_node = node

        self.size += 1
Adds a node to the linked list

        Args:
            content (Any): the content to add to the linked list
        
Adds a node to the linked list
Adds a node to the linked list
def add(self, content):
        node = Node(content, self.size)
        if self._start_node == None:
            self._start_node = node
            self._last_node = self._start_node
        else:
            node.set_parent(self._last_node)
            self._last_node.set_child(node)
            self._last_node = node
        self.size += 1
def add ( self , content ) : node = Node ( content , self . size ) if self . _start_node == None : self . _start_node = node self . _last_node = self . _start_node else : node . set_parent ( self . _last_node ) self . _last_node . set_child ( node ) self . _last_node = node self . size += 1
Adds a node to the linked list
Adds a node to the linked list
"""Adds a node to the linked list

        Args:
            content (Any): the content to add to the linked list
        """
self
content
the content to add to the linked list
the content to add to the linked list