import python from a method global variable code example Example: python global variables global var1 var1 = 'whatever'