What is the easiest way set Var

I have a addon script it is working to a point. I want to make it more useful by setting a variable within itself. what would be the best way to do this. btw that variable will be a integer.