list of variables from local scope : Hello I am learning python. In python **dir()** displays all the names defined in **namespcae** I checked and it worked fine. 
But when I used **dir(function_name)** it didn't display the variables i created inside function. **Why?**
Here is screenshot [![enter image description here][1]][1]


  [1]: https://i.stack.imgur.com/CQzEU.png