dir() function

The built-in function dir() can be used to get information about a given object.

Example use of the dir() function

The result list all properties and methods of that object.

References

https://docs.python.org/3/library/functions.html