Python Programming - Debugging - Discussion

Discussion Forum : Debugging - General Questions (Q.No. 11)
11.
What does the Python locals() function provide during debugging?
A list of all global variables
A dictionary of all local variables in the current scope
Information about the call stack
A list of all imported modules
Answer: Option
Explanation:
The locals() function in Python provides a dictionary of all local variables in the current scope during debugging.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.