Python: How to use the built-in help( ) and dir( ) functions

In addition to the .__doc__ function which is useful for seeing the docstring of a function or class object, Python has a couple of other useful built-in help functions called help() and dir(). The help() function can be used to inspect functions. For example: >>> help(docstring_test) Help on function docstring_test in module __main__: docstring_test() This … Continue reading Python: How to use the built-in help( ) and dir( ) functions