Python - Classes and Object Lifecycle
Consider this code:
What happens to the first Node object after
class Node:
def __init__(self, value):
self.value = value
self.next = None
head = Node(1)
head.next = Node(2)
head = NoneWhat happens to the first Node object after
head = None?