❮ Python Keywords ExampleGet your own Python Server Make a function inside a function, which uses the variable x as a non local variable: defmyfunc1(): x ="John" defmyfunc2(): nonlocal x x ="hello" myfunc2() returnx print(myfunc1()) ...