modify global variables in python without global keyword in python code example Example: python global variables global var1 var1 = 'whatever'