I have the following code:
class Node:
def __init__(self, item):
self.item = item
node1 = Node(12)
cur = node1
Is it possible to delete node1using cur?
I tried del cur but it doesn't give the desired outcome cur now no longer exists but node1 still does.
Any help appreciated.