Below is my code:

```
 def before_Upd(self):
     count = 0
     def Update(self):
         if count = 0:
             a = something
             b = something
         count = count+1

         x= min(a,newa)
         self.after(2000,self.Update)             

```

I am trying to call a function within another function. I Only want the initial values to be set to something. And from the next iteration onwards to compare the previous minimum value (i.e x) with a new value to get a new minimum(x again).. This has to be done every 2 seconds. The problem here is, Update() is never called. I know this would be something silly but I am not able to figure it out.. TIA for all the suggestions!