how to change local variable from outside function in python code example Example: global variables python global x x=1