__dir__() is a built-in function in Python that returns a list of names in the current local scope or an object's attributes, depending on the context in which it is called. When __dir__() is ..