how to make a variable available to all methods in python code example Example: python global variables global var1 var1 = 'whatever'