Python - Constructors and Object Initialization
You want to create a class
Choose the correct line to replace
Node for a linked list where each node refers to itself and the next node. Which is the correct way to set the next node using self reference?class Node:
def __init__(self, value):
self.value = value
self.next = None
def set_next(self, next_node):
???Choose the correct line to replace
???.