how to add to beginning of linked list python code example
Example: how to add to beginning of linked list python
def insert_at_start(self, data):
new_node = Node(data)
new_node.ref = self.start_node
self.start_node= new_node