Python locals function example

Python Built-in Function locals(): The locals() is an inbuilt function in Python that returns the dictionary of the current local