Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.
An object for storing a single node in a linked list
data: Data stored in node
next_node: Reference to next node in linked list
def __init__(self, data, next_node = None):
self.data = data
self.next_node = next_node
return "<Node data: %s>" % self.data