how to access global variable inside a function code example Example: global variables python global x x=1