Is there a way in python to compare a variable with itself? Basically, I am trying to check if the value being fed to a variable \'X\' is changed or not.
In more simpler