def to_lst(self):
        """Cycle all items and puts them in a list

        :return: list representation
        """
        out = []
        node = self.head

        while node is not None:
            out.append(node.val)
            node = node.next_node

        return out
def to_lst ( self ) : out = [ ] node = self . head while node is not None : out . append ( node . val ) node = node . next_node return out
Cycle all items and puts them in a list

        :return: list representation