@@ -0,0 +1,1009 @@
+%22%22%22%0A%09This script contains implementations for:%0A%09- Singly Linked Lists%0A%09- Doubly Linked Lists%0A%22%22%22%0Afrom builtins import object, str%0A%0Aclass Node(object):%0A    %22%22%22%0A        Attributes include:%0A        value: The value of the Node%0A        next: The pointer to the next Node%0A    %22%22%22%0A    def __init__(self, value):%0A        self.__value = value%0A        self.__next = None%0A%0A    @property%0A    def value(self):%0A        %22%22%22 Returns the value of the Node %22%22%22%0A        return self.__value%0A%0A    @value.setter%0A    def value(self, value):%0A        %22%22%22 Sets the value of the Node %22%22%22%0A        self.__value = value%0A%0A    @property%0A    def next(self):%0A        %22%22%22 Returns the next Node %22%22%22%0A        return self.__next%0A%0A    @next.setter%0A    def next(self, node):%0A        %22%22%22 Sets the pointer to the next Node %22%22%22%0A        if node == None or isinstance(node, Node):%0A            self.__next = node%0A        else:%0A            raise ValueError(%22cannot set next to a %22 + str(type(node)))%0A%0A    def __str__(self):%0A        return str(self.__value)

Implement Node