how get a variable from inside a function in python code example Example: global variables python global x x=1