Q1: Return Type of globals()

What is the return type of globals() method in Python?

1. List

2. Dictionary

3. Tuple

4. Set

Answer: 2. Dictionary

You can learn more about globals() and locals() in Python here.

Leave a Comment