how to make a change to global variable in python inside a function code example Example: how to make variable global in python global variable variable = 'whatever'