What is the usage of help() and dir() functions.

help() – it is built in function python which when executed, returns docstring along with module name, filename, function name and constant of the module passed as argument.

dir()- it is built in function in python which is used to display properties and methods of object passed as an argument in it. Here object can be any module, function, constant, list etc.

error: Content is protected !!