Is there a way to clear the value of a variable in python?
For example if I was implementing a binary tree:
class Node:
self.left = somenode1
self.right = somenode2
If I wanted to remove some node from the tree, I would need to set self.left
to empty.