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 terms, e.g.,
The value of X at 10:30 AM is = 23
The value of X at 10:40 AM is = 23 (It can be the same )
The value of X at 10:50 AM is = 30 (It can change after sometime)
So I want to know how to monitor this change in variable 'X' using python?
I hope my question is clear.
Thanks in advance !