Python globals()
Python’s globals() function returns a dictionary of name –> object mappings. The names are the ones defined globally, i.e., defined by Python or in the outside scope of your program. The objects are the values associated to these names. For example, if you set variable x = [1, 2, 3], the globals() dictionary will contain … Read more