About 539 letters
About 3 minutes
Description: Return a mapping object representing the current local symbol table.
def locals():
'''
Return a mapping object representing the current local symbol table
:return: A mapping object of the current local symbol table
'''
Example:
def main():
name = 'Alice'
age = 17
print(locals())
main()
Created in 5/15/2025
Updated in 5/16/2025