Im new to python In python here is my code
Stringtoknow = "value"
#some code
def onchange():
print("the value change")
Stringtoknow = "new value"
# run the onchange function
I want the code that will run onchange function when Stringtoknow variable changes