Run
x = 10 def my_function(): x = 20 y = 30 print(locals()) my_function()
Output