So i\'m trying to make a function that keeps track how many times a method is called. for example:
a = [1,2,3,4] a.pop()
i want to know how
Just define a global variable and increment it inside function.
a = 0 def some_function(): global a a+=1 <..Your code.>
This will automatically be incremented as function is used and you can access it globally.