python call a global variable ina method code example Example: how to make variable global in python global variable variable = 'whatever'