class Node:

    def __init__(self, value):
        self.value = value
        self.nextNode = None


node1 = Node(50)
node2 = Node(30)
node1.nextNode = node2
print(node1.value)
print(node1.nextNode.value)