making a function that changes global variable in python code example Example: how to make variable global in python global variable variable = 'whatever'