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
Actually, that does not delete the variable/property. All it will do is set its value to None, therefore the variable will still take up space in memory. If you want to completely wipe all existence of the variable from memory, you can just type:
None
del self.left